sohobloo / react-native-modal-dropdown

A react-native dropdown/picker/selector component for both Android & iOS.
MIT License
1.19k stars 477 forks source link

Setting the defaultValue does not change the text. #182

Closed halaharr closed 6 years ago

halaharr commented 6 years ago

Hi, I have two tabs and they both have city dropdown. I set the property in redux store when the value of the city is changed. When I change to the other tab the value is not changing to the new city. I have set defaultValue={this.props.city}. I did console log the value to make sure it is the new city but the text still does not change. Any help would be appreciated.

Thanks

halaharr commented 6 years ago

I was able to figure out by setting defaultValue = -1

romreed commented 4 years ago

I have the same issue.