mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
7abfd23b90
Summary: This is already handled cleanly on the JS side of things in AnimatedInterpolation.js: https://github.com/facebook/react-native/blob/0ee5f68929610106ee6864baa04ea90be0fc5160/Libraries/Animated/src/nodes/AnimatedInterpolation.js#L133-L142 However, the native driver interpolation will try to divide by 0, produce NaN and then crash. This change just copies the logic from the JS version of the interpolation logic and adds it to the Java version. Note that this bug only reproduces on Android Q. It seems that RenderNode::setCameraDistance now crashes when receiving NaN on Android Q. Reviewed By: sahrens Differential Revision: D15380844 fbshipit-source-id: cfa82d8f58574e1040a851aaa5b5af1e23c9daa8
Building React Native for Android
See the docs on the website.
Running tests
When you submit a pull request CircleCI will automatically run all tests. To run tests locally, see Testing.