🧵 A library to run JS functions ("Worklets") on separate Threads
See the codeA Worklet runner for React Native.
const worklet = () => {
'worklet'
return Math.random()
}
[!NOTE] In most cases, react-native-worklets-core shouldn't be used as a standalone dependency but rather as a peer-dependency for other modules such as react-native-vision-camera, react-native-wishlist, or react-native-skia.
yarn add react-native-worklets-core
babel.config.js:
module.exports = {
plugins: [
["react-native-worklets-core/plugin"],
// ...
],
// ...
};
yarn start --reset-cache
See USAGE.md
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
752 followers · starred Jun 2023
1,206 followers · starred Aug 2023
481 followers · starred Jul 2026
1,014 followers · starred Apr 2025
🧵 A library to run JS functions ("Worklets") on separate Threads
See the codeA Worklet runner for React Native.
const worklet = () => {
'worklet'
return Math.random()
}
[!NOTE] In most cases, react-native-worklets-core shouldn't be used as a standalone dependency but rather as a peer-dependency for other modules such as react-native-vision-camera, react-native-wishlist, or react-native-skia.
yarn add react-native-worklets-core
babel.config.js:
module.exports = {
plugins: [
["react-native-worklets-core/plugin"],
// ...
],
// ...
};
yarn start --reset-cache
See USAGE.md
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
752 followers · starred Jun 2023
1,206 followers · starred Aug 2023
481 followers · starred Jul 2026
1,014 followers · starred Apr 2025