react-native
react-native copied to clipboard
remove animation from borderLayer to stop unwanted animations
Summary: changelog: [fix][ios] prevent unwanted border animation
The problem: CALayer and its properties are animatable. If RN applies mutations inside an animation block, it will animate. In this particular example, it was animated because of a transition applied by the library and because we were not creating new views, but recycling views from previous screen.
This caused size of _borderLayer to change from value A to value B inside of animation block. To resolve this, call removeAllAnimations on borderLayer.
Reviewed By: cipolleschi
Differential Revision: D53566886
This pull request was exported from Phabricator. Differential Revision: D53566886
This pull request was exported from Phabricator. Differential Revision: D53566886
This pull request has been merged in facebook/react-native@5fbdc994f945ee8d834632649e3b82451660e8fe.