Minimal reproduction for an issue where using fetch() inside a worklet runtime causes the app to crash without printing any error.
- Expo SDK: 54.0.22
- React Native: 0.81.5
- react-native-reanimated: ~4.1.1
- react-native-worklets: 0.6.1
- React: 19.1.0
When calling fetch() inside a worklet runtime created with react-native-worklets, the app crashes immediately without any error message in the console.
-
Install dependencies:
npm install
-
Run on device:
npx expo run:android # or npx expo run:ios -
Observe the crash when the app loads
The fetch request should either:
- Complete successfully and log the response
- Fail with an error that is caught and logged
The app crashes silently without any error output.
See App.tsx for the minimal reproduction case. The issue occurs in the testWorkletFetch() function which:
- Creates a worklet runtime
- Schedules a worklet that calls
fetch() - Crashes without printing any error
This same code pattern works fine in the main JS thread but fails when executed in a worklet runtime.