The main advantages seem to be related to performance :
Creating a style sheet from a style object allows you to reference it by ID instead of creating a new style object each time.
It also allows you to send style only once across the bridge. All subsequent use will refer to id (not yet implemented).
Other benefits may include:
: https://facebook.imtqy.com/react-native/docs/stylesheet.html
, , ( , StyleSheet) , .
JavaScript-. , , , . - , .
: http://facebook.imtqy.com/react-native/docs/style.html#content
, , StyleSheet.
, StyleSheet, , , styles.myNiceComponent.backgroundColor === 'blue'
:
-?