Skip to content

Instantly share code, notes, and snippets.

@prigara prigara/App.js
Created Mar 6, 2018

Embed
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>
<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
You can’t perform that action at this time.