A library to run JS functions ("Worklets") on separate Threads
A library to run JS functions ("Worklets") on separate Threads
A 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-corebabel.config.js:module.exports = {
plugins: [
["react-native-worklets-core/plugin"],
// ...
],
// ...
};yarn start --reset-cacheSee USAGE.md
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
No open issues yet, or sync has not completed.