React Native Bug Discovered

Jonathan Ohlsson
iontea
Published in
1 min readJan 10, 2019

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

Notice the comments, setting scale properties to 0 causes the bug

Github issue: https://github.com/facebook/react-native/issues/6278

--

--

Jonathan Ohlsson
iontea
Editor for

I’m a Software Engineer based out of London. I build Hello, the most advanced language learning software in the world.