Migrate from StyleSheet
react-native-unistyles
embraces the simplicity of StyleSheet
, making it easy to integrate into your project.
You can replace StyleSheet.create
with createStyleSheet
and it will work exactly the same:
If you need additional functionalities such as breakpoints
, media-queries
or theme
you can incrementally pass style(sheet)
into the useStyles
hook:
With the hook in place, you can now use all the features.