joeyschroeder / react-native-simple-animations

🌈 A React Native component that adds simple entrance, exit, and attention-seeking animations to a child component.
https://www.npmjs.com/package/react-native-simple-animations
Other
27 stars 4 forks source link

If 'animateOnUpdate' update of a property triggers animation of ALL #4

Open kivanov82 opened 4 years ago

kivanov82 commented 4 years ago

I'm having a few siblings, all having animateOnUpdate=true Their props do not overlap (i.e, using different ones from 'state'), however update of a prop of one of them triggers animation of all. Suggestions?

PS. Thanks for a great library! Simplifies stuff a lot!

joeyschroeder commented 4 years ago

@kivanov82 I'll take a look at this and see if I can figure out a good solution without adding too much complexity to the component props. You have a simple code sample I could use for testing?