🚀 Main changes
- Added
useAnimatedSensorfor Web https://github.com/software-mansion/react-native-reanimated/pull/3955 - Added
setImmediateimplementation for Reanimated runtime - Added first part of functionality of Shared Element Transition. Examples available here. Please note that this is experimental feature, not production ready. We are waiting for your feedback to improve functionality.
What's Changed
- Rename
dataAccessLock_todataAccessMutex_by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3953 - Add warning for style animations missing initial values by @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/3947
- Fix build package CI warnings by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3942
- Add useAnimatedSensor for Web by @mstach60161 in https://github.com/software-mansion/react-native-reanimated/pull/3955
- Optimize the way we extract code string and in which we pass it across runtimes by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/3930
- Disable
HERMES_ENABLE_DEBUGGERwhen building Reanimated 2 AAR package by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3956 - Raise error when
cppVersionis undefined by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3944 - Fix: 3.0.0-rc.9 , useAnimatedScrollHandler with FlashList not working by @orekasep in https://github.com/software-mansion/react-native-reanimated/pull/3938
- Don't look in default path for libs if path is procided by @reinismu in https://github.com/software-mansion/react-native-reanimated/pull/3945
- Rewrite
isAnimatedfunction by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3949 - Optimize previous style calculation in
styleUpdaterby @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3950 - Fix keyboard height in useAnimatedKeyboard on language change on iOS by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/3940
- Make work with transluscent StatusBar on Android by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/3958
- Use
getBoolinstead ofasBoolby @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3961 - Fix small bugs in useAnimatedSensor for web by @mstach60161 in https://github.com/software-mansion/react-native-reanimated/pull/3962
- Fix typo on reanimated 2 mock.ts by @GSTJ in https://github.com/software-mansion/react-native-reanimated/pull/3968
- Bump react-native to 0.71.0 in Example and FabricExample by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3972
- Extend the set of layout animation mocks by @jalooc in https://github.com/software-mansion/react-native-reanimated/pull/3974
- Revert "Optimize previous style calculation in
styleUpdater" by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3979 - Bump react-native to 0.71.1 by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3984
- Assign
*runtime_tortby @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3986 - Various
useScrollViewOffsetimprovements by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3987 - Remove version check in FabricUtils.cpp by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3985
- Fix attaching a scroll event if the scrollable component is not the root view by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/3988
- [LayoutAnimations] Fix exiting animations inside a Native Stack Navigator by @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/3865
- Upgrade navigation packages in Example app by @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/3995
- [Android] Fix crash when navigating during an exiting animation by @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/4002
- [Android] Cleanup animated sensors in NativeProxy destructor by @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/3954
- small spell correction by @jonnyroc in https://github.com/software-mansion/react-native-reanimated/pull/4007
- [Android] Fix wrong variable name in build.gradle by @filipeveronezi in https://github.com/software-mansion/react-native-reanimated/pull/4008
- Remove
RN_FABRIC_ENABLEDflag in RNReanimated.podspec by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4011 - Shared Element Transition by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/3827
- Hide
back-to-topbutton in the documentation by @j-piasecki in https://github.com/software-mansion/react-native-reanimated/pull/4013 - Fix crash caused by data race in useAnimatedKeyboard by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/3911
- Fix so path in cmake for new arch off [Android Compilation Issue] by @pavangoyal42 in https://github.com/software-mansion/react-native-reanimated/pull/4018
- Add web support without a Babel/SWC Plugin by @nandorojo in https://github.com/software-mansion/react-native-reanimated/pull/3997
- Make shareable HostObject code more generic by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4024
- Fix blank spots in examples list in FabricExample by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4019
- Fix Fabric crash in
NativeReanimatedModule::removeShadowNodeFromRegistryby @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4020 - Unify event handling on Paper and Fabric by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4012
- Ignore events with malformed JSON payload by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4037
- [Shared Element Transition] Improvements after review v1 by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4014
- [Shared Element Transition] Fix: view disappeared after layout animation by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4026
- [Shared Element Transition] Fix exiting animations on Android by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4038
RuntimeDecoratorcleanup by @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/4027- [Shared Element Transition] Problem with headers by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4036
- Make sensors work with different device orientations by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/4033
- Fix reloading when using useAnimatedKeyboard by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/3932
- [Shared Element Transition] Disable animation on swipe back by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4047
- Remove unnecessary import by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4049
- Format JsiUtils.h by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4051
- Auto add proguard config by @heroic in https://github.com/software-mansion/react-native-reanimated/pull/3494
- Fixed sourceMap typo in plugin.js by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/4054
- Refactor NativeProxy on Android by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/4042
- Optimize hot code-paths in uAS by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/3980
- Fix perf regression introduced in #3980 🙃 by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4059
- Bump react-native to 0.71.3 by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4064
- [Shared Element Transition] Animation restart by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4043
- Get rid of only-value-capture optimization that breaks the world by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4060
- Add proxy interface for Animated.FlatList to enable passing itemLayoutAnimation prop by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/4074
- Cache Android build artifacts in GitHub Actions by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/3456
- Use consistent argument names and types in
_removeShadowNodeFromRegistryby @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4076 - Move plugin.js to its separate directory by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/4067
- Fix host obj reference loop by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4082
- Fix
targetGlobalOriginX/Yin custom layout animations by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/4052 - Raise error when cpplint is not installed by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4080
- Resolve
runtime/interrors in cpplint by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4081 - Add inline styles without animation functions by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/4062
- Add inline animated props by @graszka22 in https://github.com/software-mansion/react-native-reanimated/pull/4068
- Add setImmediate implementation to the UI runtime by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/3970
- Avoid setImmediate calls on Jest environment by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4083
- Fix missing dependency on
React-hermeson older RN versions by @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/4044 - [Shared Element Transition] Added shared transition support for modal screens by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4065
- Amend package.json for 'plugin/' instead of 'plugin.js' by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/4085
- docs: remove redundant docs versioning by @kacperkapusciak in https://github.com/software-mansion/react-native-reanimated/pull/4066
- Update docs about testing after recent changes by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4084
- [Shared Element Transition] Restore X-axis origin by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4086
- Fix crash with snapshot on iOS by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4092
- Fix docs link in reanimated_utils.rb by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4087
- Add gesture handler RootView to Example app by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4093
- Fix Layout Animation restart by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4095
- Layout animations cleanup by @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/4090
- [Shared Element Transition] Examples by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4088
- Hardcode JS library version in
checkVersionby @jwajgelt in https://github.com/software-mansion/react-native-reanimated/pull/4101 - Make all events on iOS flush updates immediately by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4097
- Flush animation-frame and immediates on keyboard event to follow same flow as other types of events by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4098
- Skip flushing animation-frame callbacks if update was already run for a given frame by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4099
- Remove
HAS_JS_WEAK_OBJECTSdefinition by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4105 - Call
shouldGenerateSourceMaponly once by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4104 - Bump react-native version in V8 CI by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/4111
- Flush operations for events on iOS Fabric by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4110
- Minor documentation fixes by @Kwasow in https://github.com/software-mansion/react-native-reanimated/pull/4109
- Fix ViewGroupManager cast by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4113
- docs: adjust 2.x docs for 3.x by @kacperkapusciak in https://github.com/software-mansion/react-native-reanimated/pull/4102
- Fix backward compatibility with asBool() by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/4115
New Contributors
@mstach60161 @orekasep @reinismu @GSTJ @jalooc @jonnyroc @filipeveronezi @pavangoyal42 @heroic @tjzel
🙌 Thank you for your contributions!
Full Changelog: https://github.com/software-mansion/react-native-reanimated/compare/2.14.0...3.0.0
Package build: https://github.com/software-mansion/react-native-reanimated/actions/runs/4283227194