mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
b2c022ec54
Summary: Changelog: [internal] # Problem Fabric doesn't know when NativeAnimatedModule control a prop and overrides its change whenever any prop changes. For example component A is animating its opacity from 1 to 0. NativeAnimatedModule starts calling `[RCTViewComponentView updateProps:oldProps:]` method interpolating opacity from 1 to 0. After it is finished, if any prop is updated on the component. Its opacity will be set to default. # Fix This is a temporary problem until Unified Animation System is put in place. To work around the issue for now, we keep a set of prop keys controlled by animated and only update the prop if it isn't in this list. List is cleared when the component is reused. Reviewed By: JoshuaGross Differential Revision: D24046848 fbshipit-source-id: 63cca6854f97b2de764cb3ed505d328323c64525