You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 21, 2023. It is now read-only.
// only css:module:{loaders:[{test:/\.css$/,loader:'react-native-css-loader'}]}// use stylus:module:{loaders:[{test:/\.styl$/,loader:'react-native-css-loader!stylus-loader'}]}// use sass:module:{loaders:[{test:/\.scss$/,loader:'react-native-css-loader!sass-loader'}]}// use less:module:{loaders:[{test:/\.less$/,loader:'react-native-css-loader!less-loader'}]}
Properties supported
Any property found in your CSS will be camelCased. By default, this plugin will always output values as JavaScript Number or Boolean objects when appropriate. Values with units attached, including "em" and "px," will be output without their unit suffixes.
Special-case properties
The following properties output different keys to satisfy React Native's requirements. Unless otherwise noted, the values for each correspond with CSS3.
Property
Example Values
Notes
margin
2px 2px 4px 3px 1px 5px 1px 3px 2px 6px
padding
2px 2px 4px 3px 1px 5px 1px 3px 2px 6px
box-shadow
none 0 2px 4px rgba(52, 21, 23, 0.32)
Inset shadows and spread values are not supported.
flex
1 1 30px 1 2 10%
Only the first value will be output and the rest will be ignored, as React Native does not support flex-basis or flex-shrink.