Skip to content
Projets

margelo/react-native-worklets-core

Voir sur GitHub

margelo/react-native-worklets-core has 792 GitHub stars and 67 forks. GitHot measured -1 stars in 24 hours and -1 in 7 days. Last checked 2026-11-25 03:58 UTC. Last push 2026-04-22.

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
-1
in 7 days
-1
in 15 days
Historique en cours
in 1 month
Historique en cours

Variations nettes sur des pĂ©riodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les Ă©toiles indiquent l’intĂ©rĂȘt, pas la qualitĂ©.

À propos

đŸ§” BibliothĂšque permettant d’exĂ©cuter des fonctions JavaScript (« Worklets ») sur des threads sĂ©parĂ©s

Web et applications

README.md

Original

đŸ§” react-native-worklets-core

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.

Installation

  1. Install the library from npm:
    yarn add react-native-worklets-core
    
  2. Add the babel plugin to your babel.config.js:
    module.exports = {
      plugins: [
        ["react-native-worklets-core/plugin"],
        // ...
      ],
      // ...
    };
    
  3. Restart Metro with clean cache:
    yarn start --reset-cache
    

Usage

See USAGE.md

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT

Credits

  • Credits go to Christian Falch for building the initial version of this library. You're amazing! đŸ€©
  • Credits go to Software Mansion for introducing the concept of Worklets in Reanimated v2. This library is inspired by Reanimated v2 with a few structural changes to the Worklets architecture to make it more flexible for different use-cases, such as integrating it with other C++ libraries like VisionCamera and WishList.

Explorer des projets similaires

Chargement