chymtt / ReactNativeDropdownAndroid

A simple wrapper for Android's Spinner in react-native
MIT License
61 stars 22 forks source link

Dropdown value failed to be changed #14

Closed zichaolim closed 8 years ago

zichaolim commented 8 years ago

Dropdown style={{ height: 20, width: 300,marginTop:5}} values={this.state.countryList} onChange={this.onChangeCountry.bind(this)} selected={this.state.selectedCountryNumber}

Dropdown style={{ height: 20, width: 300,marginTop:5}} values={this.state.clubList} onChange={this.onChangeClubList.bind(this)} selected={0}

I got two dropdown and after I select another value of the country dropdown, I do the following action:

setState({clubList: change some array items });

but then the items of dropdown for clublist are still the same with previous items, no change. How to make it change?

zichaolim commented 8 years ago

surprisingly, it works now!