Conversation
There was a problem hiding this comment.
While this is not necessary to bump Reanimated, we found out that this may cause issues.
The main problem is passing props that are SharedValue into React Native components. This might not be the only place where we do this, but this is the one that we found. Also expo-example app no longer crash so for now we can leave that and keep in mind that it might be worth to check other places in our codebase as well.
There was a problem hiding this comment.
Pull request overview
Updates the monorepo’s Reanimated/Worklets stack and regenerates native lockfiles to match, ensuring example apps and the gesture-handler package build against the newer animation toolchain.
Changes:
- Bump
react-native-reanimatedto^4.3.0and addreact-native-worklets^0.8.1in multiple workspaces. - Regenerate
yarn.lockto reflect updated dependency graph (including related transitive bumps). - Update CocoaPods/Xcode project artifacts for the macOS and iOS example apps to match new native pod layouts.
Reviewed changes
Copilot reviewed 6 out of 9 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
yarn.lock |
Lockfile refresh after upgrading Reanimated/Worklets and transitive dependencies. |
packages/react-native-gesture-handler/package.json |
Bumps Reanimated dev dependency and adds Worklets for local/dev builds. |
apps/basic-example/package.json |
Bumps Reanimated and Worklets used by the basic example app. |
apps/basic-example/ios/Podfile.lock |
Updates iOS pod resolutions for Reanimated/Worklets. |
apps/expo-example/package.json |
Bumps Reanimated and Worklets used by the Expo example app. |
apps/macos-example/package.json |
Bumps Reanimated and Worklets used by the macOS example app. |
apps/macos-example/macos/Podfile.lock |
Updates macOS pod resolutions for Reanimated/Worklets (new subspec layout). |
apps/macos-example/macos/MacOSExample.xcodeproj/project.pbxproj |
Xcode project serialization changes related to build phase + linker flags. |
apps/common-app/src/ListWithHeader/ListWithHeader.tsx |
Refactors scroll component props usage (notably avoiding capturing props in worklets). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "react-native": "0.81.4", | ||
| "react-native-gesture-handler": "workspace:*", | ||
| "react-native-reanimated": "^4.2.1", | ||
| "react-native-reanimated": "^4.3.0", | ||
| "react-native-safe-area-context": "~5.6.0", | ||
| "react-native-screens": "~4.16.0", | ||
| "react-native-svg": "15.12.1", | ||
| "react-native-web": "^0.21.0", | ||
| "react-native-worklets": "^0.7.1" | ||
| "react-native-worklets": "^0.8.1" |
There was a problem hiding this comment.
This workspace depends on common-app, which still declares react-native-reanimated@^3.18.0 and no react-native-worklets. After this bump, the repo will install both Reanimated v3 and v4 (see apps/common-app/package.json + yarn.lock), which is very likely to break bundling/runtime because Reanimated is a native module. Consider bumping common-app to react-native-reanimated@^4.3.0 and adding react-native-worklets@^0.8.1 as well, so the monorepo uses a single Reanimated major version.
| "common-app": "workspace:*", | ||
| "react": "19.1.4", | ||
| "react-native": "0.81.2", | ||
| "react-native-gesture-handler": "workspace:*", | ||
| "react-native-macos": "0.81.2", | ||
| "react-native-reanimated": "^4.2.1", | ||
| "react-native-reanimated": "^4.3.0", | ||
| "react-native-safe-area-context": "^5.5.2", | ||
| "react-native-svg": "^15.15.3", | ||
| "react-native-worklets": "^0.7.4" | ||
| "react-native-worklets": "^0.8.1" |
There was a problem hiding this comment.
This workspace depends on common-app, which still declares react-native-reanimated@^3.18.0 and no react-native-worklets. After this bump, the repo will install both Reanimated v3 and v4 (see apps/common-app/package.json + yarn.lock), which is very likely to break bundling/runtime because Reanimated is a native module. Consider bumping common-app to react-native-reanimated@^4.3.0 and adding react-native-worklets@^0.8.1 as well, so the monorepo uses a single Reanimated major version.
Description
This PR bumps Reanimated version, along with worklets. Since in
common-appwe still had Reanimated 3.18, I've also introduced necessary changes to types.Test plan
Build and run example apps.