2
我还是新的反应本地的,上单击创建模态反应,原生的Android
那么我试过是做一个简单的应用程序, 有按钮,当按下它只是打开警报 作为本守则
class MyFirstReactapril extends Component{
render(){
return(
<View style={styles.container}>
<Text style={styles.welcome}> Welcome Nesreen</Text>
<TouchableHighlight style={styles.button} onPress={this.showAlert}>
<Text style={styles.buttonText}>Myalert</Text>
</TouchableHighlight>
</View>
)
}
showAlert(){
Alert.alert('Fast Donation','', [{text : 'Donate now'},{text : 'add to Container'}])
}
}
现在我想开模态上的按钮,点击不仅仅是警报 我试图读取该 http://facebook.github.io/react-native/docs/modal.html#content 但我真的失去了 我怎样才能使模态反应使用母语?