react-native-reanimated
react-native-reanimated copied to clipboard
fix: Proper support for nested `animatedProps` objects and correct cleanup
Summary
This PR adds correct type for the animatedProps prop that doesn't include any layout animation-related props, allows nested arrays with mixed CSS and animated props objects. It also fixes the issue whit props cleanup that didn't work before (see packages/react-native-reanimated/src/createAnimatedComponent/AnimatedComponent.tsx - the array of animated props was not detached from the view).
It also adds a few typetests and jest unit tests that ensure the new behavior is correct.