react-native-animatable
react-native-animatable copied to clipboard
Error: Animation definitions must have at least two values
I am continuously getting the following error:
Animation definitions must have at least two values
I tried looking it up in the repo and found the error message in createAnimation.js
, but I can't get a clue why I'm getting the error.
The code I am using is mainly taken from the README
example:
render() {
handleViewRef = ref => this.view = ref;
bounce = () => this.view.bounce(800).then(endState => console.log(endState.finished ? 'bounce finished' : 'bounce cancelled'));
return (
<Touchable onPress={bounce}>
<Animatable.View ref={handleViewRef}>
<Text>Bounce me!</Text>
</Animatable.View>
</Touchable>
);
}
Hey, how did you solve this?