Releases: software-mansion/react-native-reanimated
3.6.3
3.7.0
What's Changed
New features
- visionOS support by @okwasniewski in #5627
- Add TSDoc to public API by @kacperkapusciak in #5377
- Pass down generator boolean in babel plugin by @wcandillon in #5565
- Add new spring feature - clamp by @Latropos in #5195
- Introduce executeOnUIRuntimeSync and use it to replace Sync Data Holder by @kmagiera in #4300
Fixes
- Fix ScrollView missing properties by @tjzel in #5437
- Web Layout Animation fixes by @m-bert
- [Web LA] Update
left
from snapshot. by @m-bert in #5491 - Fix overloads in createAnimatedComponent by @Latropos in #5463
- Fix "Reading from
_value
directly is only possible on the UI runtime." on fast refresh during library development by @tomekzaw in #5434 - Fix incomplete UI runtime initialization by @tomekzaw in #5505
- Fix FlatList item generic types by @jkadamczyk in #5528
- Fix
useHandler
context issue by @bartlomiejbloniarz in #5586 - fix: lazily search for ReactFabric by @WoLewicki in #5588
- Fix Android reloads by @piaskowyk in #5624
- Fix plugin sometimes not workletizing
ObjectMethod
by @tjzel in #5599
Improvements
- Rework
interpolate
documentation by @kacperkapusciak in #5398 - Replace useRef with useState for useSharedValue by @amadeus in #5458
- Add warning about reduced motion in dev mode by @bartlomiejbloniarz in #5479
- TS Improvements by @tjzel, @Latropos, @marmor157
- Add
withClamp
documentation by @Latropos in #5381 - Use relative file location in source maps with
relativeSourceLocation
enabled by @tjzel in #5464 - Add docs for Reanimated Babel plugin options by @tjzel in #5382
- Always inject JS version by @tjzel in #5499
- Add suggestions to errors for accessing mutable's
value
by @tjzel in #5531 - Remove
makeRemote
by @tjzel in #5518 - Properly transpile async functions by @tjzel in #5577
- Allow layout animations to be updated on rerender by @bartlomiejbloniarz in #5371
- Pass shared_ptr by reference by @piaskowyk in #5592
- Add interactive examples to landing page by @patrycjakalinska in #5603
New Contributors
@marmor157 @Code-Victor @wodin @amadeus @azashi @shubham1206agra @migueldaipre @cortinico @patrycjakalinska @jp1987 @okwasniewski
π Thank you for your contributions!
Package build: https://github.com/software-mansion/react-native-reanimated/actions/runs/7017226041
Full Changelog: 3.6.2...3.7.0
3.6.2
3.6.1
3.6.0
What's Changed
New features
- Multithreading / Async task - @tomekzaw in #5068 #5192
- Layout Animations for web - @m-bert in #4805
- Added
<LayoutAnimationConfig>
- @bartlomiejbloniarz in #5045 - Support for [email protected] - @piaskowyk in #4913 #5422
- Add animation - withClamp - @Latropos in #5239
Fixes
- Update type exports to fix build warnings - @khevamann in #5074
- fix Maximum call stack size exceeded - @efstathiosntonas in #5087
- Fix Skia-Reanimated integration - @tjzel in #5103
- Fix cleaning layout animation config on iOS - @Latropos in #4997
- [SET] Fix transition restart by @piaskowyk in #4947
- Prevent top-level calls to
requestAnimationFrame
- @bartlomiejbloniarz in #5136 - Fix inline styles on web - @tjzel in #5164
- Fix animated UI Props on Web - @piaskowyk in #5169
- Fix mapper getting stuck on an error in worklet - @tjzel in #5190
- Fix race-condition during render - @piaskowyk in #5224
- Fix stack trace on worklet factory crash - @tjzel in #5197
- Fix inverted
FlatList
by @bartlomiejbloniarz in #5295 - Fix useAnimatedKeyboard when keyboard type changes by @andreysam in #5337
Improvements
- Documentation improvements - @kacperkapusciak in #5063 #5071 #5159 #5215 #5299
- Use strict everywhere - @tjzel in #5055
- Add e2e tests in NextExample - @bartlomiejbloniarz in #5124
- CI to detect broken URLs in source code - @piaskowyk in #5131
- Unify
Extrapolation
andExtrapolate
- @Latropos in #5141 - Add
performance.now
in worklet runtimes by @tomekzaw in #5194 - Improve spring config verification - @Latropos in #5188
- Add compatibility table - @Latropos in #5122
- Add shareable ArrayBuffer, typed arrays and DataView, BigInt - @tomekzaw in #5223 #5237
- Reduce web bundle size - @bartlomiejbloniarz in #5203 #5200
- Replaced DEBUG macro with NDEBUG - @michalmaka in #5113
- Bump iOS deployment target to 10.0 - @gabrieldonadel in #5263
- Run listeners when calling sv.modify - @tomekzaw in #5306
- Avoid double serialization of
__initData
- @tomekzaw in #5186 - Add JSProps on Fabric by @piaskowyk in #5009
- Use install_modules_dependencies by @piaskowyk in #5334
- Allow different flavors JS and App by @tjzel in #5404
Typescript
- A lot of type improvements - @tjzel
New Contributors
@khevamann @xSyki @ankit-tailor @caglar09 @gabrieldonadel @td-tomasz-joniec @cwclancy @szydlovsky @joshlam @andreysam @ugurcanatas
π Thank you for your contributions!
Package build: https://github.com/software-mansion/react-native-reanimated/actions/runs/7017226041
Full Changelog: 3.5.0...3.6.0
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