1.3.2 • Published 1 day ago

react-native-worklets-core v1.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 day ago

🧵 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.
1.3.2

1 day ago

1.3.1

1 day ago

1.3.0

6 days ago

1.2.0

14 days ago

1.1.3

14 days ago

1.1.2

14 days ago

1.1.1

22 days ago

1.1.0

22 days ago

1.0.0

22 days ago

1.0.0-beta.4

22 days ago

1.0.0-beta.3

24 days ago

1.0.0-beta.2

29 days ago

1.0.0-beta.0

1 month ago

1.0.0-beta.1

1 month ago

0.5.0

1 month ago

0.4.0

2 months ago

0.3.0

3 months ago

0.2.1

7 months ago

0.2.3

6 months ago

0.2.2

7 months ago

0.2.4

6 months ago

0.2.0

9 months ago