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