react-native-unistyles
Level up your React Native StyleSheet
README
react-native-unistyles
Features
- ⚡ Blazing fast, adds around ~3ms on top of StyleSheet*
- 🎳 Share up to 100% of your styles across platforms in monorepo
- 🎯 Doesn't introduce new components
- 🖥️ Supports custom breakpoints and css-like media queries
- 🎨 Access theme in your StyleSheets and components
- 🪄 Supports dynamic functions to access values from JSX
- 🥳 Compatible with Expo, Expo Go, Bare React Native, React Native Web and SSR
- 🛡️ ~99% Test coverage
- ⚔️ No 3rd party dependencies
*-based on this benchmark
Installation
- ```cmd
- yarn add react-native-unistyles
- ```
- Examples
Faster, better and simpler - v.2.0 🚀
There is ongoing work on branch 2.0.
Join early testers and discussion here.
- ```cmd
- yarn add react-native-unistyles@next
- ```
Blog post
Read about what drove me to create this library in this blog post here.
Sponsor my work
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!
License
MIT