in mpush_reactnative_android_demo/AwesomeProject/index.android.js [40:116]
render() {
return (
<View >
<View style={styles.tabbar}>
<Image source={require('./assets/imgs/logo.png')} style={styles.logo}/>
<Text style={styles.tabname}>MPush ReactNative Demo</Text>
</View>
<View style={styles.btnWrapper}>
<Button
onPress = {this.onDeviceIdClicked}
title = {this.state.deviceIdBtnTitle}
color = "#841584"
/>
</View>
<View style={styles.btnWrapper}>
<TextInput
style={{height: 40, borderColor: 'gray', borderWidth: 1}}
onChangeText={(text) => this.setState({accountToBind: text})}
value={this.state.accountToBind}
/>
</View>
<View style={{flexDirection:'row', margin:15, justifyContent:'space-around'}}>
<View style={{flex:1, margin:5}}>
<Button
flex-grow = "1"
title="Consent to privacy"
color = "#6495ed"
onPress = {this.InitClicked}
/>
</View>
<View style={{flex:1, margin:5}}>
<Button
flex-grow = "1"
title="BIND ACCOUNT"
color = "#6495ed"
onPress = {this.onAccountBindClicked}
/>
</View>
<View style={{flex:1, margin:5}}>
<Button
flex-grow = "1"
title = "UNBIND ACCOUNT"
color = "#6495ed"
onPress = {this.onAccountUnbindClicked}
/>
</View>
</View>
<View style={styles.btnWrapper}>
<TextInput
style={{height: 40, borderColor: 'gray', borderWidth: 1}}
onChangeText={(text) => this.setState({tagToAdd: text})}
value={this.state.tagToAdd}
/>
</View>
<View style={{flexDirection:'row', margin:15, justifyContent:'space-around'}}>
<View style={{flex:1, margin:5}}>
<Button
flex-grow = "1"
title="ADD TAG"
color = "#6495ed"
onPress = {this.onAddTagClicked}
/>
</View>
<View style={{flex:1, margin:5}}>
<Button
flex-grow = "1"
title = "DELETE TAG"
color = "#6495ed"
onPress = {this.onDeleteTagClicked}
/>
</View>
</View>
</View>
);
}