Description
When calling fetch() inside a worklet runtime created with react-native-worklets, the app crashes immediately without printing any error messages to the console. This makes it impossible to debug what's going wrong.
The documentation suggests that fetch() is supported in worklets - as shown in the official React Native Worklets introduction video at 1:07:

However, attempting to use fetch() as demonstrated causes an immediate crash.
Steps to reproduce
- Clone the reproduction repository: https://github.com/enlob/react-native-worklets-fetch
- Install dependencies:
npm install
- Run on device:
npx expo run:android or npx expo run:ios
- App crashes immediately on load
Snack or a link to a repository
https://github.com/enlob/react-native-worklets-fetch
Reanimated version
~4.1.1
Worklets version
0.6.1
React Native version
0.81.5
Platforms
Android
JavaScript runtime
Hermes
Workflow
Expo Dev Client
Architecture
New Architecture (Fabric renderer)
Reanimated feature flags
None
React Native release level
None
Build type
No response
Device
Real device
Host machine
Windows
Device model
No response
Acknowledgements
Yes
Description
When calling
fetch()inside a worklet runtime created withreact-native-worklets, the app crashes immediately without printing any error messages to the console. This makes it impossible to debug what's going wrong.The documentation suggests that
fetch()is supported in worklets - as shown in the official React Native Worklets introduction video at 1:07:However, attempting to use
fetch()as demonstrated causes an immediate crash.Steps to reproduce
npm installnpx expo run:androidornpx expo run:iosSnack or a link to a repository
https://github.com/enlob/react-native-worklets-fetch
Reanimated version
~4.1.1
Worklets version
0.6.1
React Native version
0.81.5
Platforms
Android
JavaScript runtime
Hermes
Workflow
Expo Dev Client
Architecture
New Architecture (Fabric renderer)
Reanimated feature flags
None
React Native release level
None
Build type
No response
Device
Real device
Host machine
Windows
Device model
No response
Acknowledgements
Yes