🚀 New features
useAnimatedSensor()- API for animation based on sensor data https://github.com/software-mansion/react-native-reanimated/pull/2868- Building from the source - now you can build Reanimated from source directly in your Android project https://github.com/software-mansion/react-native-reanimated/pull/2933
- Handle the "Slow animations" option in simulators https://github.com/software-mansion/react-native-reanimated/pull/2931
- Initial value modifier for predefined layout animations https://github.com/software-mansion/react-native-reanimated/pull/2799
- Support for
react-native@0.68https://github.com/software-mansion/react-native-reanimated/pull/2987
🐛 Important Bug fixes
- Fix order of updaters execution https://github.com/software-mansion/react-native-reanimated/pull/2580 https://github.com/software-mansion/react-native-reanimated/pull/2851
- Unresolved view tag https://github.com/software-mansion/react-native-reanimated/pull/2982
- Implemented ConfigureProps as JSI function https://github.com/software-mansion/react-native-reanimated/pull/3059
What's Changed
- Fix 2971: TS error with Easing.bezier by @kkafar in https://github.com/software-mansion/react-native-reanimated/pull/2979
- Check for NaN by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/2980
- Catch & ignore IllegalViewOperationException in AnimationsManager#removeLeftovers by @kkafar in https://github.com/software-mansion/react-native-reanimated/pull/2982
- Add macro for JSI spec exported functions by @jakub-gonet in https://github.com/software-mansion/react-native-reanimated/pull/2978
- Handle "Slow animations" option in simulators by @jakub-gonet in https://github.com/software-mansion/react-native-reanimated/pull/2931
- Fix crash when handling event containing NaN or INF values by @michaelknoch in https://github.com/software-mansion/react-native-reanimated/pull/2992
- Add getter for
reactInstanceManagerby @WFolini in https://github.com/software-mansion/react-native-reanimated/pull/2863 - feat: added withInitialValues modifier by @gorhom in https://github.com/software-mansion/react-native-reanimated/pull/2799
- react-native 0.68 by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/2987
- Update dependencies versions (0) by @kkafar in https://github.com/software-mansion/react-native-reanimated/pull/2986
- Update dev dependencies && update jest snapshots (1) by @kkafar in https://github.com/software-mansion/react-native-reanimated/pull/2988
- Fix Java lint on JDK 16+ by @jakub-gonet in https://github.com/software-mansion/react-native-reanimated/pull/3004
- fix: Add
performance.now()to Babel plugin by @mrousavy in https://github.com/software-mansion/react-native-reanimated/pull/3006 - corrected grammatical errors by @Rquaicoo in https://github.com/software-mansion/react-native-reanimated/pull/3013
- Added simple cleanup command by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/3007
- Update jest version (2) by @kkafar in https://github.com/software-mansion/react-native-reanimated/pull/2990
- Autoinstall Android by @jakub-gonet in https://github.com/software-mansion/react-native-reanimated/pull/3005
- Use
P extends objectin AnimateProps generic type by @jakub-gonet in https://github.com/software-mansion/react-native-reanimated/pull/3022 - Update path in d.ts after relocation by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/2977
- Operations order by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/2580
- Fix bezier & bezierFn mock in ReanimatedV2 by @notjosh in https://github.com/software-mansion/react-native-reanimated/pull/3034
- fix: accept case insensitive flavor by @0akl3y in https://github.com/software-mansion/react-native-reanimated/pull/3041
- Source build: don't hardcode build dir by @janicduplessis in https://github.com/software-mansion/react-native-reanimated/pull/3053
- Source build: support reactNativeArchitectures by @janicduplessis in https://github.com/software-mansion/react-native-reanimated/pull/3055
- Source build: resolve react-native and other packages relative to reanimated package by @janicduplessis in https://github.com/software-mansion/react-native-reanimated/pull/3054
- ConfigureProps by JSI by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/3059
- Update initial style every render by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/2851
- Add @babel/preset-typescript to peerDependencies as it's used at runtime for the worklet plugin by @levibuzolic in https://github.com/software-mansion/react-native-reanimated/pull/3077
- Added useAnimatedSensor() by @piaskowyk in https://github.com/software-mansion/react-native-reanimated/pull/2868
New Contributors
- @hasanfd made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/2958
- @WFolini made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/2863
- @Rquaicoo made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/3013
- @notjosh made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/3034
- @0akl3y made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/3041
- @levibuzolic made their first contribution in https://github.com/software-mansion/react-native-reanimated/pull/3077
Full Changelog: https://github.com/software-mansion/react-native-reanimated/compare/2.4.1...2.5.0
🙌 Thank you for your contributions!
Release card