Package Exports
- react-native-unistyles
- react-native-unistyles/lib/commonjs/index.js
- react-native-unistyles/lib/module/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-unistyles) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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 and React Native Web
- ⚔️ No 3rd party dependencies
*-based on this benchmark
Installation
yarn add react-native-unistyles
Documentation
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