Improve the writing stylesheet experience
This plugin is a highly recommended supplement to the base stylesheet library of react native, offering some useful features:
- compilation rpx
- supporting space values:
padding: "20 20 10"
Install the plugin first:
npm install babel-plugin-react-native-style --save-dev
or use yarn
yarn add babel-plugin-react-native-style -D
Then add it to your babel configuration:
{
"plugins": ["react-native-style"]
}
- compilation rpx
- native pt
- supporting space values
- supporting background
Licensed under the MIT License,Copyright (c) 2019 ouyangxin.
See LICENSE.md for more information.