Releases: software-mansion/react-native-reanimated
3.5.4
3.5.3
3.5.2
3.5.1
What's Changed
Fix for undefined _IS_FABRIC - #5065
🙌 Thank you for your contributions!
Package build: https://github.com/software-mansion/react-native-reanimated/actions/runs/6156776596
Full Changelog: 3.5.0...3.5.1
3.5.0
What's Changed
New features
- ✨ Publish New Docs ✨ by @kacperkapusciak in #4904
- Support for
react-native-macos
by @jfedak in #4912 - Add basic JS implementation support for
react-native-windows
by @piaskowyk in #4917 - Reduce motion in animations - #4748 #4884 https://docs.swmansion.com/react-native-reanimated/docs/guides/accessibility
- _log for complex types by @t0ms0n00 in #4857
- Add
setNativeProps
helper function on UI runtime by @tomekzaw in #4595 - Expose APIs for integrating with worklets by @tomekzaw in #4944
- Expose
libreanimated
to be consumed via prefab by @tomekzaw in #5005 - Add clamp worklet by @kowczarz in #4960
Fixes
- Mock REAInitializer for backward compatibility by @piaskowyk in #4880
- Add default implementations for blocks from AnimationsManager on iOS by @piaskowyk in #4878
- Reintroduce
onReanimatedPropsChange
by @Latropos in #4821 - Add missing nullcheck for nativeProxy on Fabric by @piaskowyk in #5016
- Enable
NDEBUG
in production builds by @tomekzaw in #4902 - Remove
DEBUG
flag whenPRODUCTION
env is not set by @j-piasecki in #4918 - Fix event dispatcher broken on ios with expo-dev-client by @Kudo in #4926
- Fix passing remote functions as arguments to
runOnJS
by @tomekzaw in #4617 - Remove
setNextLayoutAnimationGroup
call by @tomekzaw in #4955 - Fix
useAnimatedProps
on web by @m-bert in #4977 - Fix scrollTo crash by @m-bert in #4984
- Improve timestamp calculations by @Latropos in #4856
Improvements
- Add CI to check react-native nightly build by @piaskowyk in #4843
- Add CI to check Expo dev-client nightly build by @piaskowyk in #4818
- [SET] Run animation only for source view by @piaskowyk in #4879
- Lock
weakNativeReanimatedModule
using conditionals by @tomekzaw in #4871 - Use pair as key in handlers map by @jfedak in #4766
- Add nightly CI to check TS compatibility with different RN versions by @tjzel in #4908
- Better reanimated shadow tree commit detection by @michalmaka in #4949
- Fix
useAnimatedSensor
vector velocity on Android by @kowczarz in #4933 - Use original function's name inside worklet by @tjzel in #4951
- Adjust Web Android sensors to works the same as native iOS and Android by @wojtus7 in #4956
- Unify error messages and add Troubleshooting section to docs by @tjzel in #4915
- Add warning - component style is overwritten with animation style. by @Latropos in #4969
- Fix dynamic_cast (RTTI) by adding key function to shareables by @tomekzaw in #4995
- Fixed crash on reload on RN 0.73 by moving propsRegistry and hooks to nativeReanimatedModule by @michalmaka in #4982
- Resolve headers name conflict with expo-dev-client by @piaskowyk in #5010
- Fix compatibility with older rn-screens version by @piaskowyk in #5014
- Fix crash on reload in
ShareableRemoteFunction
by @tomekzaw in #5015 - Fix withDecay infinite updates issue by @MatiPl01 in #4699
- Add fallback to setImmediate for Expo Router static rendering by @javascripter in #4665
Fabric
- Replace old shadow nodes in PropsRegistry with new ones by @michalmaka in #4986
- Added optimization to shouldSkipCommit mechanism by @michalmaka in #4958
- Removed unnecessary copies of UIManager and ContextContainer by @michalmaka in #4812
- Store last reanimated root as atomic ptr, avoid copying and locking by @michalmaka in #4813
- Removed unnecessary lock during committing shadowTree by @michalmaka in #4826
- Moved (de)registration of ReanimatedCommitHook to its con/de-structor by @michalmaka in #4810
- Improved skipping commits by @michalmaka in #4833
- Added some includes to make headers self sufficient by @michalmaka in #5021
Typescript
- Minor adjustments to types in useAnimatedRef and related by @tjzel in #4709
- Unify AnimateStyle types by @tjzel in #4855
- Hotfix: allow transform to be a string in useAnimatedStyle by @tjzel in #4881
- Allow nullables in useAnimatedRef scrollable node getters by @tjzel in #4864
- Remove return type from function components by @tomekzaw in #4928
- Fix
AnimatedStyle
for good by @tjzel in #4923 - Improve entry exit animation types by @Latropos in #4998
New Contributors
@m-bert @t0ms0n00 @gerzonc @schriker @kowczarz @aleqsio @Gaohaoyang @MatiPl01
🙌 Thank you for your contributions!
Package build: https://github.com/software-mansion/react-native-reanimated/actions/runs/6147177203
Full Changelog: 3.4.0...3.5.0
3.4.2
3.4.1
3.4.0
What's Changed
-
Shared Element Transition
- Added support for progress based transition (
⚠️ requiresreact-native-screens@3.23.0
+) - Added possibility to animating border radius
- Added support for progress based transition (
-
Plugin improvements:
- Support for nested worklets #4332
- Better error messaging
- Added more unit tests
- Refactor
-
Refactors
-
Fixes
- Bug fix on IOS check if method exists before swizzling it in #4566
- Fix ChoreographerCallback double execution in #4579
- Fix animations not running when Chrome Debugger is attached in #4568
- Fix R class reference ReanimatedKeyboardEventListener in #4571
- Fix sensors on android web in #4499
- Fix babel plugins' location in #4561
- Fix "withDecay clamps position to the wrong boundary" in #4591
- Replace
useRef
withuseSharedValue
inuseAnimatedReaction
to preserve value between renders in #4633 - Unregister commit hook on Android in #4658
- Fix inline styles for Animated Components in #4671
- Fix TypeScript issue with useAnimatedProps in #4653
- Swizzle RCTUIManager in #4619
- Remove location property in worklets for production builds in #4695
- Merge initial style in #4711
- Fix React-Fabric imports with
USE_FRAMEWORKS=static
in #4718 - Detected debug version of the worklet in release bundle in #4732
- Add missing layout props to configHelper in #4770
- Initialize CADisplayLink on UI thread in #4694
- Cancel animation for modals in #4776
-
Other
- Batch update props JSI calls in #4503
- Use commit hook to update props on Fabric in #4075
- Memoize ReanimatedModule in
sendEvent
in #4525 - Fix runOnJS on Web and make it asynchronous in #4572
- Set default scrollEventThrottle in #4589
- Add warnings when sensor unavailable on web in #4573
- Allow setting ndk path/version in #4596
- Unify platform checks in #4594
- Remove react-native-reanimated.d.ts in #4519
- Register for events by name in #4640
- Unify types of all 'style' related props in AnimateProps in #4610
- [Fabric] Remove
ShadowTreeCloner::updateYogaChildren
in #4664 - Batch remove from props registry in #4678
- Add useReducedMotion hook in #4687
- Autoworkletize callbacks in Layout Animations in #4652
- Add JSLogger class and duplicate SET tags in #4675
- Add support for sharing
RegExp`` in https://github.com/software-mansion/react-native-reanimated/pull/4713 Add support for
Intl` in worklets in #4717 - Add pendulum example in #4648
- Add duration support to springify in #4710
- CI for iOS build with USE_FRAMEWORKS=static in #4735
- Improve transform matrix animation in #4536
- Schedule worklets via
runOnJS
in #4622 - Implement
dispatchCommand
on Paper in #4586
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: 3.3.0...3.4.0
3.3.0
What's Changed
- Add React import by @tomekzaw in #4532
- Remove warning when calling
measure
from RN runtime by @tomekzaw in #4526 - Remove unnecessary import by @tomekzaw in #4528
- Inject
_WORKLET
to RN runtime by @tomekzaw in #4511 - Unify iOS initialization / Add support for 0.72.0-rc.5 by @tomekzaw in #4523
- Bump fast-xml-parser from 4.2.2 to 4.2.4 by @dependabot in #4542
- Bump fast-xml-parser from 4.2.0 to 4.2.4 in /Example by @dependabot in #4539
- Bump fast-xml-parser from 4.2.0 to 4.2.4 in /WebExample by @dependabot in #4541
- Bump fast-xml-parser from 4.2.0 to 4.2.4 in /FabricExample by @dependabot in #4540
- Added getAnimatableRef function by @behenate in #4533
- Fix testing example by @mccraveiro in #4547
- fix: ios build error when using 'use_frameworks!' in Podfile by @yupengyang in #4504
- Fix spring bug with extra type verification by @Latropos in #4512
- Fix RCTAppDelegate.h file not found error when
USE_FRAMEWORKS=static
by @tomekzaw in #4558 - fix: transform type change in RN 0.71.9 by @radko93 in #4550
- Release 3.3.0 by @tomekzaw in #4560
New Contributors
- @behenate made their first contribution in #4533
- @mccraveiro made their first contribution in #4547
- @yupengyang made their first contribution in #4504
Full Changelog: 3.2.0...3.3.0
3.2.0
What's Changed
- Make single instance assertion work with Gradle Configuration Cache by @j-piasecki in #4350
- Fix updating props of ScreenStackHeaderConfig on Paper iOS by @tomekzaw in #4375
- Set the opposite sensor values on android to be consistent with iOS by @mstach60161 in #4368
- Fix scrollTo on FlashList by @tomekzaw in #4384
- [Fix][Android] useAnimatedKeyboard hook breaks translucent status bar by @Latropos in #4390
- Add one listener per sensor config by @mstach60161 in #4340
- Fix Layout Animations iOS crash on reload by @tomekzaw in #4404
- Resolve sync UI updates concurency issue on iOS by @kmagiera in #4403
- Unfreeze UI objects 🥶 -> 😎 by @piaskowyk in #4401
- Bump patch-package for dependabot alerts by @tjzel in #4410
- expose convertToRGBA to the types by @wcandillon in #4415
- Simple code cleanup - remove unused function parameter by @Latropos in #4427
- Generalize withTiming/withSpring to animate objects by @mstach60161 in #4393
- Remove plugin dev files from npm package by @tjzel in #4433
- Rewrite jest unit tests to TypeScript by @tjzel in #4399
- Fix infinite loop in mappers by @mstach60161 in #4429
- Add test suites to check Reanimated Babel plugin idempotency by @tjzel in #4441
- Replace console.error with throw new Error by @tomekzaw in #4452
- Add sensor slider example by @kacperkapusciak in #4330
- Publish nightly builds on npm by @tomekzaw in #4438
- Restore header back button after reload on web by @tomekzaw in #4453
- Publish on npm only when flag is enabled by @tomekzaw in #4460
- Change nightly version numbering by @tomekzaw in #4461
- Auto-workletize functions passed to runOnUI by @tomekzaw in #4459
- Migrate away from
setNativeProps
on web by @tomekzaw in #4352 - Remove
withDecay
velocity fix on Web by @kacperkapusciak in #4462 - Rename
ref
&aref
->animatedRef
in types by @kacperkapusciak in #4469 - Remove commonjs generation by @tjzel in #4468
- Fix createReactDOMStyle import by @tomekzaw in #4473
- Optimize
useAnimatedReaction
by @j-piasecki in #4466 - Fix chrome debugger for Android by @piaskowyk in #4474
- Fix Jest bundling error by @tomekzaw in #4478
- Update view tag on
componentDidUpdate
by @Latropos in #4440 - Fix animatedRef on Fabric by @mstach60161 in #4445
- Fix cyclic object detection in
makeShareableCloneRecursive
by @tomekzaw in #4475 - Bump react native version to 0.72.0-rc.3 by @mstach60161 in #4471
- Add support for spring duration by @Latropos in #4179
- Add Reanimated Beta Docs banner by @kacperkapusciak in #4490
- Set
viewTag
only if needed by @Latropos in #4487 - Throw error when calling
runOnUI
on the UI runtime by @tomekzaw in #4477 - Fix runOnUI on web by @tomekzaw in #4491
- Add scrollViewOffset prop to AnimatedScrollView by @mstach60161 in #4414
- Fix spring bug by @Latropos in #4501
🙌 Thank you for your contributions!
Package build: https://github.com/software-mansion/react-native-reanimated/actions/runs/5120718532
Full Changelog: 3.1.0...3.2.0