Skip to content

App crashes silently when using fetch() inside worklet runtime #8690

@enlob

Description

@enlob

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:

Documentation showing fetch in worklet

However, attempting to use fetch() as demonstrated causes an immediate crash.

Steps to reproduce

  1. Clone the reproduction repository: https://github.com/enlob/react-native-worklets-fetch
  2. Install dependencies: npm install
  3. Run on device: npx expo run:android or npx expo run:ios
  4. 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

Metadata

Metadata

Assignees

Labels

Platform: AndroidThis issue is specific to AndroidRepro providedA reproduction with a snippet of code, snack or repo is provided

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions