Created
June 15, 2015 16:35
-
-
Save MattFoley/81ad4f14fa233103b65a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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