thabti / react-native-css

Style React-Native components with css
MIT License
769 stars 66 forks source link

Shorthands aren't properly expanding #39

Closed jpomazal closed 8 years ago

jpomazal commented 8 years ago

Two value shorthands, e.g. padding:10px 20px, are expanding only into Top and Bottom using the Left, Right values, e.g. {paddingTop:20, paddingBottom:20}.

Additionally, border-width and border-radius are also shorthands however aren't treated as such, e.g. border-width: 1px 0 is converted to {borderWidth: 10}.

thabti commented 8 years ago

thank you