What's Changed
- Shared Element Transition
- Added support for progress based transition (⚠️ requires
react-native-screens@3.23.0+) - Added possibility to animating border radius
- Plugin improvements:
- Support for nested worklets https://github.com/software-mansion/react-native-reanimated/pull/4332
- Better error messaging
- Added more unit tests
- Refactor
- Refactors
- Swizzle RCTEventDispatcher in https://github.com/software-mansion/react-native-reanimated/pull/4576
- WorkletEventHandler refactor in https://github.com/software-mansion/react-native-reanimated/pull/4642
- Refactor color initialization using registerShareableMapping in https://github.com/software-mansion/react-native-reanimated/pull/4696
- Remove ErrorHandler in https://github.com/software-mansion/react-native-reanimated/pull/4723
- Refactor of isConfigured checks in https://github.com/software-mansion/react-native-reanimated/pull/4727
- Unify decorating RN runtime in https://github.com/software-mansion/react-native-reanimated/pull/4773
- Fixes
- Bug fix on IOS check if method exists before swizzling it in https://github.com/software-mansion/react-native-reanimated/pull/4566
- Fix ChoreographerCallback double execution in https://github.com/software-mansion/react-native-reanimated/pull/4579
- Fix animations not running when Chrome Debugger is attached in https://github.com/software-mansion/react-native-reanimated/pull/4568
- Fix R class reference ReanimatedKeyboardEventListener in https://github.com/software-mansion/react-native-reanimated/pull/4571
- Fix sensors on android web in https://github.com/software-mansion/react-native-reanimated/pull/4499
- Fix babel plugins' location in https://github.com/software-mansion/react-native-reanimated/pull/4561
- Fix "withDecay clamps position to the wrong boundary" in https://github.com/software-mansion/react-native-reanimated/pull/4591
- Replace
useRefwithuseSharedValueinuseAnimatedReactionto preserve value between renders in https://github.com/software-mansion/react-native-reanimated/pull/4633 - Unregister commit hook on Android in https://github.com/software-mansion/react-native-reanimated/pull/4658
- Fix inline styles for Animated Components in https://github.com/software-mansion/react-native-reanimated/pull/4671
- Fix TypeScript issue with useAnimatedProps in https://github.com/software-mansion/react-native-reanimated/pull/4653
- Swizzle RCTUIManager in https://github.com/software-mansion/react-native-reanimated/pull/4619
- Remove location property in worklets for production builds in https://github.com/software-mansion/react-native-reanimated/pull/4695
- Merge initial style in https://github.com/software-mansion/react-native-reanimated/pull/4711
- Fix React-Fabric imports with
USE_FRAMEWORKS=staticin https://github.com/software-mansion/react-native-reanimated/pull/4718 - Detected debug version of the worklet in release bundle in https://github.com/software-mansion/react-native-reanimated/pull/4732
- Add missing layout props to configHelper in https://github.com/software-mansion/react-native-reanimated/pull/4770
- Initialize CADisplayLink on UI thread in https://github.com/software-mansion/react-native-reanimated/pull/4694
- Cancel animation for modals in https://github.com/software-mansion/react-native-reanimated/pull/4776
- Other
- Batch update props JSI calls in https://github.com/software-mansion/react-native-reanimated/pull/4503
- Use commit hook to update props on Fabric in https://github.com/software-mansion/react-native-reanimated/pull/4075
- Memoize ReanimatedModule in
sendEventin https://github.com/software-mansion/react-native-reanimated/pull/4525 - Fix runOnJS on Web and make it asynchronous in https://github.com/software-mansion/react-native-reanimated/pull/4572
- Set default scrollEventThrottle in https://github.com/software-mansion/react-native-reanimated/pull/4589
- Add warnings when sensor unavailable on web in https://github.com/software-mansion/react-native-reanimated/pull/4573
- Allow setting ndk path/version in https://github.com/software-mansion/react-native-reanimated/pull/4596
- Unify platform checks in https://github.com/software-mansion/react-native-reanimated/pull/4594
- Remove react-native-reanimated.d.ts in https://github.com/software-mansion/react-native-reanimated/pull/4519
- Register for events by name in https://github.com/software-mansion/react-native-reanimated/pull/4640
- Unify types of all 'style' related props in AnimateProps in https://github.com/software-mansion/react-native-reanimated/pull/4610
- [Fabric] Remove
ShadowTreeCloner::updateYogaChildrenin https://github.com/software-mansion/react-native-reanimated/pull/4664 - Batch remove from props registry in https://github.com/software-mansion/react-native-reanimated/pull/4678
- Add useReducedMotion hook in https://github.com/software-mansion/react-native-reanimated/pull/4687
- Autoworkletize callbacks in Layout Animations in https://github.com/software-mansion/react-native-reanimated/pull/4652
- Add JSLogger class and duplicate SET tags in https://github.com/software-mansion/react-native-reanimated/pull/4675
- Add support for sharing
RegExp` in https://github.com/software-mansion/react-native-reanimated/pull/4713 - Add pendulum example in https://github.com/software-mansion/react-native-reanimated/pull/4648
- Add duration support to springify in https://github.com/software-mansion/react-native-reanimated/pull/4710
- CI for iOS build with USE_FRAMEWORKS=static in https://github.com/software-mansion/react-native-reanimated/pull/4735
- Improve transform matrix animation in https://github.com/software-mansion/react-native-reanimated/pull/4536
- Schedule worklets via
runOnJSin https://github.com/software-mansion/react-native-reanimated/pull/4622 - Implement
dispatchCommandon Paper in https://github.com/software-mansion/react-native-reanimated/pull/4586
Add support for Intl in worklets in https://github.com/software-mansion/react-native-reanimated/pull/4717
New Contributors
@samuel-rl @androideveloper @michalmaka @diego-antonelli @efstathiosntonas @jfedak @bartlomiejbloniarz @joonmanji @matt-livekindred
🙌 Thank you for your contributions!
Package build: https://github.com/software-mansion/react-native-reanimated/actions/runs/5656199880
Full Changelog: https://github.com/software-mansion/react-native-reanimated/compare/3.3.0...3.4.0