React Native Worklets
react-native-worklets
The React Native multithreading library
React Native Libraries
react-native
react
native
worklets
react-native-worklets
React Native Libraries
javascript
npm
frontend
open source
Stars
11k
Weekly
5.2M
Open issues
329
Bundle
~15 kB
Installation
npm install react-native-workletsCode example
import { View, Text, StyleSheet } from "react-native";
import { Worklets } from "react-native-worklets";
export function Example() {
return (
<View style={styles.box}>
<Text style={styles.title}>Worklets</Text>
<Worklets />
</View>
);
}
const styles = StyleSheet.create({
box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 12 },
title: { fontSize: 18, fontWeight: "600" },
});Pros & cons
Pros
- Actively maintained by tjzel
- 5.2M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- 329 open issues on GitHub