Żelawski describes the main UI thread and the JavaScript thread, where React and much of an app’s work runs. He lists animations, gestures, data fetching, cryptography, camera processing, and GPU access as examples, and argues that more cores could handle work beyond the two threads’ usual roles.
Worklets Everywhere: Multithreading in React Native
Speaker
Tomasz Żelawski, a software engineer at Software Mansion and React Native Worklets maintainer, explains worklets and multithreading in React Native at React Universe Conf 2025, in a talk presented by Callstack.
JavaScript runtimes are single-threaded, and a function cannot simply move from the React Native runtime to a separate UI runtime. Worklets address this with a Babel plugin that transforms a function so its code can be passed as a string and evaluated in another runtime. Reanimated and Gesture Handler have used this approach for animations and gestures.
For broader computation, Żelawski introduces bundle mode, an experimental Worklets feature that gives other runtimes access to the app’s JavaScript bundle. He illustrates offloading an Axios HTTP request in a `loadUniverse` function to a worker runtime. Metro assigns module IDs, and `require.resolveWeak` lets the plugin associate a worklet with its module so another runtime can load it.
With bundle mode, each runtime can use Metro’s module system and access the same bundle, including libraries such as Axios. Żelawski says setup is still unpleasant and Fast Refresh remains difficult. He sees worklets and bundle mode as a path toward web workers in React Native.
Takeaways
- Use the UI thread for work that needs direct access to rendering and user input, such as animations and gestures.
- Worklets let selected JavaScript functions run in separate runtimes, though the traditional approach moves function code as strings.
- Bundle mode aims to make ordinary bundled modules available to worker runtimes, including dependencies such as Axios.
- Treat bundle mode as experimental: setup and Fast Refresh still present challenges.
Mentioned in this talk
Search inside this talk
What was claimed 8
- usesReanimated uses Worklets
“the React Native Worklets library, which was extracted from Reanimated.”
YouTube Unverified1 source· Talk
- role atTomasz Żelawski is maintainer at Worklets
“I'm also a maintainer of the React Native Worklets library”
YouTube Unverified1 source· Talk
- role atTomasz Żelawski is software engineer at Software Mansion
“I'm a software engineer at Software Mansion”
YouTube Unverified1 source· Talk
- works atTomasz Żelawski works at Software Mansion
“I'm a software engineer at Software Mansion”
YouTube Unverified1 source· Talk
- featureWorklets: A worklet is a short-running JavaScript function that can be moved and executed across different runtimes.
“A worklet is a short-running JavaScript function that can be moved and executed across different runtimes.”
YouTube Unverified1 source· Talk
- featureWorklets: Experimental bundle mode gives worklets access to the whole JavaScript bundle.
“Bundle mode is an experimental feature in React Native Worklets that gives worklets access to your whole JavaScript bundle.”
YouTube Unverified1 source· Talk
- integrates with
“there’s a little function exposed by Metro called require.resolveWeak, which takes a file as an argument and returns its module ID.”
YouTube Unverified1 source· Talk
- featureWorklets: Worklets and bundle mode could provide web-worker-like capabilities in React Native.Worklets and bundle mode could provide web-worker-like capabilities in React Native.
“with React Native worklets and the bundle mode, we can get the piece that has been missing in React Native for such a long time: web workers.”
YouTube Unverified1 source· Talk









