oblador / react-native-animatable

Standard set of easy to use animations and declarative transitions for React Native
MIT License
9.82k stars 701 forks source link

Make it possible to override isInteraction #291

Closed joel-bitar closed 4 years ago

joel-bitar commented 4 years ago

This pull request makes it possible to override isInteraction for the animation. As it is today non-looping (iterationCount <= 1) animatinos will always set isInteraction to true and looping animations will set it to false.

With this pull request that behaviour can be overriden by defining isInteraction as a prop on the component.

I needed this for a long running animation that shouldn't block interaction mananger. I also saw that someone else asked for the same feature a while ago (https://github.com/oblador/react-native-animatable/issues/241).

oblador commented 4 years ago

Thanks! Mind adding it to thr readme too?

joel-bitar commented 4 years ago

Sure thing. Also fixed lint errors for real!

bigggge commented 4 years ago

When will it be published to npm?