1.0.0 • Published 7 years ago

react-native-style-shortcuts v1.0.0

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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