<Icon.Button onPress={() => {this._change('male')}} name="ios-male">男</Icon.Button>这样写会报错,需要以下写法,放到return里面去
<Icon.Button onPress={() => {() => {this._change('male')} }} name="ios-male">男</Icon.Button>有大神知道为什么吗
米脂
慕妹3146593
随时随地看视频慕课网APP
相关分类