Created
August 30, 2018 17:57
-
-
Save willmanio/d75985847d68eeb751d90cb68890020b to your computer and use it in GitHub Desktop.
This file contains 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
// style.js | |
const BACKGROUND_COLOR = '#7c0a02'; | |
export const HEADER_COLOR = '#666'; | |
export default { | |
header: { | |
backgroundColor: BACKGROUND_COLOR, | |
}, | |
} | |
// index.js | |
import Style, { HEADER_COLOR } from './style'; | |
export default function Header() { | |
return ( | |
<View style={Style.header}> | |
<Text style={HEADER_COLOR}>Hello world! I am gray.</Text> | |
</View> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
can you make this something not involving colors, like the following? otherwise this conflicts with the new STYLE-6.