0.0.2 • Published 8 years ago
gulp-react-native-stylesheet v0.0.2
gulp-react-native-stylesheet-css
Gulp plugin for converting CSS files to React Native StyleSheets.
Licensed under MIT. Based off of the works of gulp-react-native-stylesheet-css and react-native-css.
feature
support es6 module
like this :
reactNativeStylesheetCss({
module: 'es6'
})
it wiil be create:
import {StyleSheet} from 'react-native';
export default StyleSheet.create({
"container": {
"flex": 1,
"justifyContent": "center",
"alignItems": "center",
"backgroundColor": "#F5FCFF"
},
"welcome": {
"fontSize": 20,
"textAlign": "center",
"marginTop": 10,
"marginBottom": 10,
"marginRight": 10,
"marginLeft": 10
},
"instructions": {
"textAlign": "center",
"color": "#333333",
"marginBottom": 5
}
});