Created
August 30, 2017 15:34
-
-
Save samueljmurray/3a84b65dadae48b31191f38a77b7af63 to your computer and use it in GitHub Desktop.
Component using tachyons styles
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
/* MyComponent.js */ | |
import s from "styles"; | |
class MyComponent extends React.Component { | |
render() { | |
return ( | |
<View style={[s.flex1, s.ma1, s.bg_gray_blue]}> | |
<Text style={[s.teal, s.o_90]}> | |
Hi. | |
</Text> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment