Create function like this
setGender=(props)={
this.setState({gender:props})
}
call this function from button onPress like this
onPress={()=>this.setGender("Male")}
onPress={()=>this.setGender("Female")
and show state value in Text
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…