What's Changed
New features
- visionOS support by @okwasniewski in https://github.com/software-mansion/react-native-reanimated/pull/5627
- Add TSDoc to public API by @kacperkapusciak in https://github.com/software-mansion/react-native-reanimated/pull/5377
- Pass down generator boolean in babel plugin by @wcandillon in https://github.com/software-mansion/react-native-reanimated/pull/5565
- Add new spring feature - clamp by @Latropos in https://github.com/software-mansion/react-native-reanimated/pull/5195
- Introduce executeOnUIRuntimeSync and use it to replace Sync Data Holder by @kmagiera in https://github.com/software-mansion/react-native-reanimated/pull/4300
Fixes
- Fix ScrollView missing properties by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/5437
- Web Layout Animation fixes by @m-bert
- [Web LA] Update
leftfrom snapshot. by @m-bert in https://github.com/software-mansion/react-native-reanimated/pull/5491 - Fix overloads in createAnimatedComponent by @Latropos in https://github.com/software-mansion/react-native-reanimated/pull/5463
- Fix "Reading from
_valuedirectly is only possible on the UI runtime." on fast refresh during library development by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/5434 - Fix incomplete UI runtime initialization by @tomekzaw in https://github.com/software-mansion/react-native-reanimated/pull/5505
- Fix FlatList item generic types by @jkadamczyk in https://github.com/software-mansion/react-native-reanimated/pull/5528
- Fix
useHandlercontext issue by @bartlomiejbloniarz in https://github.com/software-mansion/react-native-reanimated/pull/5586 - fix: lazily search for ReactFabric by @WoLewicki in https://github.com/software-mansion/react-native-reanimated/pull/5588
- Fix Android reloads by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/5624
- Fix plugin sometimes not workletizing
ObjectMethodby @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/5599
Improvements
- Rework
interpolatedocumentation by @kacperkapusciak in https://github.com/software-mansion/react-native-reanimated/pull/5398 - Replace useRef with useState for useSharedValue by @amadeus in https://github.com/software-mansion/react-native-reanimated/pull/5458
- Add warning about reduced motion in dev mode by @bartlomiejbloniarz in https://github.com/software-mansion/react-native-reanimated/pull/5479
- TS Improvements by @tjzel, @Latropos, @marmor157
- Add
withClampdocumentation by @Latropos in https://github.com/software-mansion/react-native-reanimated/pull/5381 - Use relative file location in source maps with
relativeSourceLocationenabled by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/5464 - Add docs for Reanimated Babel plugin options by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/5382
- Always inject JS version by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/5499
- Add suggestions to errors for accessing mutable's
valueby @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/5531 - Remove
makeRemoteby @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/5518 - Properly transpile async functions by @tjzel in https://github.com/software-mansion/react-native-reanimated/pull/5577
- Allow layout animations to be updated on rerender by @bartlomiejbloniarz in https://github.com/software-mansion/react-native-reanimated/pull/5371
- Pass shared_ptr by reference by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/5592
- Add interactive examples to landing page by @patrycjakalinska in https://github.com/software-mansion/react-native-reanimated/pull/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: https://github.com/software-mansion/react-native-reanimated/compare/3.6.2...3.7.0