mirror of
https://github.com/zhigang1992/react-native-reanimated.git
synced 2026-06-19 18:23:33 +08:00
## Motivation It was impossible to manipulate component via props which seems to be the most obvious way of applying changes into existing components ## Changes 1. Attaching props has been moved to `shouldComponentUpdate` method in order to handle case when props are being change. 2. Adding possibility to applying primitive types to transform map 3. Remove checking if primitive types are changed in `TransformNode` which is no longes necessary if we handle this changes in reactive way 4. Add possibility to change reference to View in Animated View which is common situation if we use props to manage some properties Changes has been explained also in inline comments It fixes https://github.com/kmagiera/react-native-reanimated/issues/28, https://github.com/kmagiera/react-native-reanimated/issues/62 and maybe https://github.com/kmagiera/react-native-reanimated/issues/27 (no repro context added) Example below https://gist.github.com/osdnk/2e98d8c78ab60b580fb09de17f5c1cb0