🧵 A Worklet runner for React Native.
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-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