Skip to content

Instantly share code, notes, and snippets.

@MattFoley
Created June 15, 2015 16:35
Show Gist options
  • Save MattFoley/81ad4f14fa233103b65a to your computer and use it in GitHub Desktop.
Save MattFoley/81ad4f14fa233103b65a to your computer and use it in GitHub Desktop.
//Rather than defining containerRow as multiple hard coded elements:
containerRow {
backgroundcolor: #ffffff,
opacity 90%,
dropshadow: 4px color: #000000,
corner-radius: 10pt,
}
//We define those one use elements as classes, very simple building blocks:
containerCornerRadiusPrimary: {
borderRadius: 6
}
containerColorPrimary: {
backgroundColor: 'rgba(255,255,255,.9)'
}
containerShadowPrimary: {
shadowColor: ‘#000000’,
shadowOffset: {
height: 4,
width: 0
}
}
//Then we can define containerRow using those building blocks.
containerRow: {
containerCornerRadiusPrimary,
containerColorPrimary,
containerShadowPrimary,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment