React Native Base Picker下拉...无法在onChangeValue函数内触发一个New函数

时间:2018-09-12 10:23:02

标签: reactjs native

代码:

我需要使用名为PageLoad的函数选择的状态值做一些事情,但是在调用this.pageLoad下拉菜单时停滞不前。     onValueChange =(值)=> {

        this.setState({
            selected: value
        });

this.PageLoad;

// this function not trigger.. when we calling this function picker drop down become stuck
 }

  #Return part:  
<Picker
 mode="dropdown"
iosHeader="Category"
iosIcon={<Icon name="arrow-dropdown-circle" style={{ color: "#007aff", fontSize: 25 }} />}


selectedValue={this.state.selected}
 onValueChange={this.onValueChange.bind(this)}>

请回复

0 个答案:

没有答案