react-native-animatable icon indicating copy to clipboard operation
react-native-animatable copied to clipboard

Error: Animation definitions must have at least two values

Open flxwu opened this issue 6 years ago • 1 comments

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>
    );
  }

flxwu avatar Jul 03 '18 12:07 flxwu

Hey, how did you solve this?

jesster2k10 avatar May 19 '19 08:05 jesster2k10