Environment
- React Native
- mobx
- react-native-extended-stylesheet
Code
react-native-extended-stylesheet
provides EStyleSheet.build which compile variables to reuse any style in EStyleSheet.create.
(e.g. $dark087)
And by using mobx, you can inject the StyleStore class into any component.
If you want to use only style's property value, you can access it as below.
someColorProperty={styleStore.styles.title.color}