React Native Bug Discovered
There is a known bug in React Native for Android, that causes the scale
style property to be ignored in Animations, and it even seems to appear in some cases without using Animatable
. You can work around this bug by setting the value to a small value instead, for example 0.01.
The animations will interpolate between the two values, but as soon as the actual scale value becomes 0, the style resets — causing the animation to jump. This effect can be seen in the example bellow.
Example code: https://snack.expo.io/@iontea/animation-scale-example
Github issue: https://github.com/facebook/react-native/issues/6278