brigand / react-style-proptype

Validates style objects by ensuring the keys are valid css property names (in camelcase form).
MIT License
58 stars 11 forks source link

React Native stylesheets #15

Open jer-sen opened 5 years ago

jer-sen commented 5 years ago

Can you add PropTypes.number to allowed types to allow React Native stylesheets ?

kesha-antonov commented 2 years ago

also paddingHorizontal

JPStrydom commented 1 year ago

I made react-native-style-prop-type which extends this library and adds React Native styles (like margenVertical, paddingHorizontal, etc.) and some newer CSS properties (such as gap).