Skip to content

Instantly share code, notes, and snippets.

@mcavaliere
Last active April 25, 2018 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcavaliere/0bd71cefc2222f62ec7ea3c3dbb0b3b4 to your computer and use it in GitHub Desktop.
Save mcavaliere/0bd71cefc2222f62ec7ea3c3dbb0b3b4 to your computer and use it in GitHub Desktop.
React Native Design Systems: SimpleComponent
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