1.0.0 • Published 7 years ago
react-native-style-shortcuts v1.0.0
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:
padding
margin
borderRadius
1.0.0
7 years ago