gulp-react-native-stylesheet

0.0.2 • Public • Published

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
    }
});

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-react-native-stylesheet

Weekly Downloads

0

Version

0.0.2

License

ISC

Last publish

Collaborators

  • hacke2