Closed B4ckes closed 1 year ago
const AnimatedC = Animated.createAnimatedComponent(Circle);
...
state={
circleRadius: new Animated.Value(0)
}
componentDidMount(){
this.state.circleRadius.addListener( (circleRadius) => {
this._myCircle.setNativeProps({ strokeDasharray: [circleRadius.value.toString(),314] });
});
setTimeout( () => {
Animated.spring( this.state.circleRadius, { toValue: 100, friction: 3 } ).start();
}, 2000)
}
...
<AnimatedC
ref={ (e)=>this._myCircle=e }
cx="50%" cy="50%" r="50" strokeWidth="6" fill="none"
stroke="url(#gradient)"
strokeLinejoin="round" strokeLinecap="round"
transform="rotate(-90 55 55)"
>
</AnimatedC>
Hi ! You can use animation like this
I checked it on the newest main
and it seems to work correctly on both iOS
and Android
so I will close this issue then. Feel free to comment here if something is wrong and we can always reopen it then.
Question
Hi, in the project where i'm working, we have an animated svg in the splash screen. It is being animated with the following interpolate:
The
AnimatedPath
:It works fine on iOS, but on Android i'm getting this crash:
Can anyone help me with this?
System info: