Last active
April 25, 2018 16:12
-
-
Save mcavaliere/0bd71cefc2222f62ec7ea3c3dbb0b3b4 to your computer and use it in GitHub Desktop.
React Native Design Systems: SimpleComponent
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
class SimpleComponent extends Component { | |
render() { | |
return ( | |
<View style={{ borderRadius: 5 }}> | |
<View style={{ backgroundColor: 'beige', padding: 5 }}> | |
<Text style={{ color: 'black', fontSize: 16, fontWeight: 'bold' }}>{ this.props.title }</Text> | |
</View> | |
<View style={{ padding: 5 }}> | |
<Text style={{ color: 'black', fontSize: 12 }}>{ this.props.bodyText }</Text> | |
</View> | |
</View> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment