Description
Upgrading react-native-actions-sheet from 0.9.8 to 10.1.2 breaks the app in Expo Go on Expo SDK 54.
The app crashes immediately when importing react-native-actions-sheet with:
[Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.4 vs 0.5.1)
Environment
- react-native-actions-sheet: 10.1.2
- expo: ~54.0.33
- react-native: 0.81.5
- react: 19.1.0
- react-native-reanimated: ~4.1.1
- Expo Go
- iOS simulator
Root cause
react-native-actions-sheet@10.1.2 depends on react-native-worklets@^0.7.1.
Expo SDK 54 / Expo Go bundles react-native-worklets@0.5.1.
That leads to a native/JS version mismatch as soon as the library is imported.
Reproduction
- Start with an Expo SDK 54 managed app using Expo Go
- Install
react-native-actions-sheet@10.1.2
- Import
SheetManager or ActionSheet
- Run the app in Expo Go
Actual behavior
The app crashes with:
[Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.4 vs 0.5.1)
### Expected behavior
Either:
the package should remain compatible with Expo Go for supported Expo SDKs, or
the docs/releases should clearly mention that v10 requires a development build / custom native build and is not compatible with Expo Go.
Notes
Downgrading back to react-native-actions-sheet@0.9.8 fixes the issue in the same project.
If this is expected behavior, adding a compatibility note for Expo Go users would help.
Description
Upgrading
react-native-actions-sheetfrom0.9.8to10.1.2breaks the app in Expo Go on Expo SDK 54.The app crashes immediately when importing
react-native-actions-sheetwith:[Worklets] Mismatch between JavaScript part and native part of Worklets (0.7.4 vs 0.5.1)Environment
Root cause
react-native-actions-sheet@10.1.2depends onreact-native-worklets@^0.7.1.Expo SDK 54 / Expo Go bundles
react-native-worklets@0.5.1.That leads to a native/JS version mismatch as soon as the library is imported.
Reproduction
react-native-actions-sheet@10.1.2SheetManagerorActionSheetActual behavior
The app crashes with: