Skip to content

Instantly share code, notes, and snippets.

@spikebrehm
Created April 24, 2017 20:02
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 spikebrehm/054baf7b15fd7b219cc9dd5949c301cd to your computer and use it in GitHub Desktop.
Save spikebrehm/054baf7b15fd7b219cc9dd5949c301cd to your computer and use it in GitHub Desktop.
Simple example of a React component
class SimpleComponent extends React.Component {
render() {
return (
<View>
<Header title="A simple example" />
<Button onPress={onPressButton}>
Press me
</Button>
</View>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment