yarn add react-native-unistylesInstall dependencies:
yarn add react-native-nitro-modules| react-native-unistyles | Minimum react-native-nitro-modules |
|---|---|
| >= 3.0.0 | >= 0.33.9 |
| >= 3.1.0 | >= 0.35.0 |
| >= 3.2.0 | >= 0.35.2 |
Note: Since v3.1.0,
react-native-edge-to-edgeis an optional dependency. We strongly recommend settingedgeToEdgeEnabled=truein yourandroid/gradle.propertiesβ it enforces translucent system bars on modals, disables legacy StatusBar hacks, and enables additional React Native core fixes. Expo SDK 54+ enables this automatically. You can still installreact-native-edge-to-edgefor ecosystem compatibility with libraries likereact-native-bootsplashorreact-native-permissions.
Then follow installation guides for your platform.
- π Shared core with C++ and JSI bindings
- ποΈ Powered by Nitro Modules
- π¦ΈπΌββοΈ No re-renders
- π¦ Custom web parser, classes and pseudo classes
- βοΈ Tightly integrated with Fabric and Shadow Tree
- π₯ Crazy performance, adds under 0.1 ms to your StyleSheet
- π³ Share up to 100% of your styles across platforms in monorepo
- π― Doesn't introduce new components, your view hierarchy is always clean
- π¨ Register multiple themes and change them with single function call
- and much much more!
If you found the react-native-unistyles time-saving and valuable, please consider sponsoring my work. Your support enables me to continue creating libraries with a fresh approach.
Github: https://github.com/sponsors/jpudysz
Ko-fi: https://ko-fi.com/jpudysz
Your support is greatly appreciated and helps me dedicate more time and resources to creating quality libraries. Thank you for all the support!
Looking for help or you want to chat with me?
MIT
