react-native-reanimated package:react-native-worklets package:Run prebuild to update the native code in the ios and android directories.
And that's it! Reanimated 4 is now configured in your Expo project.
Since Expo SDK 50, the Expo starter template includes the Reanimated Babel plugin by default.
When using the React Native Community CLI, you also need to manually add the react-native-worklets/plugin plugin to your babel.config.js.
Remove wrapWithReanimatedMetroConfig from your metro.config.js.
currentIndex and totalCount from useGestureViewerControlleruseGestureViewerController no longer returns currentIndex and totalCount. Use useGestureViewerState instead.GestureViewerControllerState type to GestureViewerStateonIndexChange proponIndexChange prop has been removed. Use useGestureViewerState with useEffect instead.
Improve gesture prop naming for better developer experience.
enableDismissGesture → dismiss.enableddismissThreshold → dismiss.thresholdresistance → dismiss.resistanceanimateBackdrop → dismiss.fadeBackdropuseSnap → enableSnapModeenableZoomPanGesture → enablePanWhenZoomedenableZoomGesture → enablePinchZoomenableSwipeGesture → enableHorizontalSwipe