Skip to content

Instantly share code, notes, and snippets.



Created Mar 6, 2018
What would you like to do?
export default class App extends Component<{}> {
sayHi() {
console.log("Hello!") // breakpoint on this line
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
<Text style={styles.instructions}>
To get started, edit App.js
<Text style={styles.instructions}>
<Button onPress={this.sayHi} title="Click me"/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment