react-native-default-style
A React Native's module that allows you use all their components with predefined styles by default.
Installation
npm i -S react-native-default-style
Usage
Basic Usage
// src/configureDefaultStyles.js ; const configureDefaultStyles = { const allDefaultStyles = type: COMPONENT_TYPEDEFAULT styles: backgroundColor: '#F00' ; const textDefaultStyles = type: COMPONENT_TYPETEXT styles: color: '#FFF' ; ;};
// src/app.js ;;;; ; // You must only execute once. const MyView = { return <View><Text>This is my first test</Text></View>;}const MyOtherView = { return <View><Text style=myStylesmyOtherView>This is my second test</Text></View>;}const myStyles = StyleSheet;