Add press handlers to buttons

This commit is contained in:
Julia Friesel
2018-12-23 16:46:10 +01:00
parent 000e1b63c7
commit 2c1b856234
4 changed files with 37 additions and 18 deletions
+1 -2
View File
@@ -18,14 +18,13 @@ export default class AppWrapper extends Component {
async checkLicenseAgreement() {
const agreed = await getLicenseFlag()
console.log(agreed)
if (agreed) this.setState({showLicense: false})
}
render() {
return (
this.state.showLicense ?
<License/>
<License setLicense={() => this.setState({showLicense: false})}/>
:
<View style={{ flex: 1 }}>
{this.state.showApp ?