Skip to content

Instantly share code, notes, and snippets.

@indreklasn
Created July 11, 2019 08:50
Show Gist options
  • Save indreklasn/81005fc4559584fe319b93c5c73e3ff4 to your computer and use it in GitHub Desktop.
Save indreklasn/81005fc4559584fe319b93c5c73e3ff4 to your computer and use it in GitHub Desktop.
render() {
return (
<View style={styles.panel}>
<VrButton
onClick={this.incrementCount}
style={styles.greetingBox}
>
<Text>+</Text>
</VrButton>
<VrButton
onClick={this.decrementCount}
style={styles.greetingBox}
>
<Text>-</Text>
</VrButton>
<Text style={styles.greeting}>
{`Count: ${this.state.count}`}
</Text>
</View>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment