Skip to content

Instantly share code, notes, and snippets.

@prigara
Created March 6, 2018 14:57
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 prigara/081d1288627ed34e5e6117b0d10088fa to your computer and use it in GitHub Desktop.
Save prigara/081d1288627ed34e5e6117b0d10088fa to your computer and use it in GitHub Desktop.
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>
<Text style={styles.instructions}>
To get started, edit App.js
</Text>
<Text style={styles.instructions}>
{instructions}
</Text>
<Button onPress={this.sayHi} title="Click me"/>
</View>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment