react-native-style-shortcuts
v1.0.0
Published
Utility lib for react native to help write the StyleSheet
Readme
React Native Style Shortcuts
This package offer some shortcuts for writing ReactNative styles, for example:
Instead of writing:
const styles = StyleSheet.create({
container: {
paddingTop: 1,
paddingRight: 3,
paddingBottom: 4,
paddingLeft: 5,
},
});You could write the following:
const styles = StyleSheet.create({
container: {
...padding(1, 3, 4, 5),
},
});Avaiable shortcuts:
paddingmarginborderRadius
