chore: align RN animation stack with metamask-mobile#32966 - #1381
chore: align RN animation stack with metamask-mobile#32966#1381georgewrmarshall wants to merge 2 commits into
Conversation
Bump react-native-reanimated to 4.5.1, react-native-worklets to 0.10.1, and react-native-gesture-handler to ~2.32.0 in design-system-react-native and storybook-react-native dev dependencies. Remove the react-native-worklets 0.8.3 yarn patch (upstream 0.10 no longer registers the legacy Hermes CDP debug target the patch suppressed). Update Jest setup for ESM-only Reanimated/Worklets mocks, inline Toaster animated styles for Reanimated 4.5 type compatibility, and adjust TypeScript config for bundler resolution against the new packages. Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Caution MetaMask internal reviewing guidelines:
|
📖 Storybook LinksCompare the preview for this pull request with the latest Storybooks from the 🔀 Pull Request Preview
🌳 Main Branch (Latest)
|
Hoist jest.mock for react-native-reanimated and react-native-worklets in jest.setup.js so parallel workers never load the ESM lib/module entrypoints. Fixes CI test suite failures and coverage threshold misses. Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
📖 Storybook LinksCompare the preview for this pull request with the latest Storybooks from the 🔀 Pull Request Preview
🌳 Main Branch (Latest)
|
|
@SocketSecurity ignore npm/react-native-worklets@0.10.1 Same package/version already accepted on metamask-mobile#32966. The eval-based worklet unpacker is inherent to the official Software Mansion |
Description
Aligns MetaMask Design System React Native dev dependencies with metamask-mobile#32966, which bumps the animation/gesture stack ahead of the RN 0.85 upgrade.
Dependency updates (in
@metamask/design-system-react-nativedevDependencies and@metamask/storybook-react-native):react-native-reanimated~4.3.0 → 4.5.1react-native-worklets0.8.3 → 0.10.1react-native-gesture-handler~2.28.0 → ~2.32.0Other changes:
react-native-worklets@0.8.3yarn patch — upstream 0.10 no longer registers the legacy Hermes CDP debug target the patch was suppressing (same rationale as mobile).Toasteranimated styles (mirrors mobile Toast fix for Reanimated 4.5 type compatibility).design-system-react-nativeTypeScript config (module/moduleResolution: bundler) so builds resolve the new ESM-first packages.Babel configs already use
react-native-worklets/pluginas the last plugin; no change needed there.Note: Reanimated 4.5.1 and Worklets 0.10.1 declare peer support for RN 0.83–0.86. Storybook native validation still uses a dev build on RN 0.81.5 until the broader RN platform bump lands; yarn will warn on peer ranges until then.
Related issues
Refs: metamask-mobile#32966
Manual testing steps
yarn install && yarn buildyarn workspace @metamask/design-system-react-native run testyarn storybook:ios:build/yarn storybook:android:build), smoke-test animated components (BottomSheet, Toaster, HeaderStandardAnimated, Slider) in Storybook native.Screenshots/Recordings
N/A — dependency and test tooling changes only; no user-facing UI changes.
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist