oblador / react-native-animatable

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

feat(percentageAnims): Allow percentage animations for non-interpolated values #234

Closed adam-aerobotics closed 5 years ago

adam-aerobotics commented 5 years ago

Because some values are not regarded as interpolated values (such as width, margins, etc.), using a generic transition with percentage values causes an error. This pr allows those values to be interpolated if their value is a non-number (i.e. a string percentage).

adam-aerobotics commented 5 years ago

In response to https://github.com/oblador/react-native-animatable/issues/146

oferRounds commented 4 years ago

Hi! Thank you for this! Could you perhaps give a small example of how to use this change? I’d like animate a view exapands in its width from the left