constructor(props){ super(props); this.state = {text:'125'}; } render(){ return( <View> <Button title='Status' onPress={()=>{ this.setState({text:'7777'}); alert(this.state.text) }}></Button> </View> ); }
State
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=325448703&siteId=291194637
Recommended
Ranking