Open mackness opened 6 years ago
I am a little bit confused by this part of the documentation:
https://github.com/oblador/react-native-animatable#transitionfromvalues-tovalues-duration-easing
This is how I'm attempting to use it:
Animatable.initializeRegistryWithDefinitions({ partialFadeIn: { style: { zIndex: 100 }, from: { opacity: 0 }, to: { opacity: 0.75 } } });
...
this.view .transition('partialFadeIn') .then((endState: any) => this.setState({ isMoveCardFadeComplete: true }) );
Which yields this error:
Avoid the style object in animation. (if you need zIndex put it on the view.style):
partialFadeIn: { from: { opacity: 0 }, to: { opacity: 0.75 } } });
I am a little bit confused by this part of the documentation:
https://github.com/oblador/react-native-animatable#transitionfromvalues-tovalues-duration-easing
This is how I'm attempting to use it:
...
Which yields this error: