@react-native-gpui/worklets
Desktop support for react-native-worklets: worklets run on desktop, driven by the renderer's frame clock.
Part of react-native-gpui, React Native for macOS, Windows and Linux.
Install
Install it next to react-native-worklets:
npm install [email protected] @react-native-gpui/worklets
Install the regular npm release of react-native-worklets. Its C++ needs small fixes to build with MSVC and on Linux; this package applies them to a copy in the desktop build directory and never changes node_modules.
Keep using react-native-worklets as you do on iOS and Android; its JavaScript API is unchanged. Autolinking builds the desktop side when the app is built.
Documentation
License
MIT. See LICENSE.