Skip to content

Bump Reanimated#4040

Open
m-bert wants to merge 3 commits intomainfrom
@mbert/bump-reanimated
Open

Bump Reanimated#4040
m-bert wants to merge 3 commits intomainfrom
@mbert/bump-reanimated

Conversation

@m-bert
Copy link
Contributor

@m-bert m-bert commented Mar 26, 2026

Description

This PR bumps Reanimated version, along with worklets. Since in common-app we still had Reanimated 3.18, I've also introduced necessary changes to types.

Test plan

Build and run example apps.

Copilot AI review requested due to automatic review settings March 26, 2026 15:06
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-reanimated to ^4.3.0 and add react-native-worklets ^0.8.1 in multiple workspaces.
  • Regenerate yarn.lock to 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.

Comment on lines 27 to +34
"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"
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
Comment on lines 20 to +28
"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"
Copy link

Copilot AI Mar 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copilot uses AI. Check for mistakes.
@m-bert m-bert requested a review from j-piasecki March 27, 2026 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants