Estoy tratando de animar el radio del borde de una tarjeta y la opacidad de la sombra, pero se cierra instantáneamente en IOS. Sin embargo, no estoy seguro de si estoy usando reanimated correctamente. Siento que estoy cometiendo un error crucial. Aquí está el código.
const anim = loop({ autoStart: true, duration: 1750, easing: EasingNode.inOut(EasingNode.ease), }); const riskCardStyle = useAnimatedStyle(() => { const borderRadius = Animated.interpolateNode(anim, { inputRange: [-1, 0, 1], outputRange: [30, 0, 30], extrapolate: Extrapolate.CLAMP, }); const shadowOpacity = Animated.interpolateNode(anim, { inputRange: [-100, 0, 100], outputRange: [1, 0, 1], extrapolate: Extrapolate.CLAMP, }); return { backgroundColor: Colors.white, flex: 1, position: 'relative', borderTopLeftRadius: borderRadius, borderTopRightRadius: borderRadius, shadowColor: 'rgba(168, 179, 255, 0.4)', shadowOffset: { width: 0, height: -3, }, shadowRadius: 20, shadowOpacity, }; });gracias de antemano