createStyleSheet
createStyleSheet
is interchangeable with StyleSheet.create
. You can use objects, and it will function identically to its React Native counterpart.
The difference is that you can now use breakpoints and media queries:
createStyleSheet
also accepts a function, to which the library will inject your theme:
Importantly, you’ll receive the same TypeScript hints as with StyleSheet.create
!