react-native-picker / picker

Picker is a cross-platform UI component for selecting an item from a list of options.
MIT License
1.47k stars 277 forks source link

Picker is showing the previous selected value even after the value prop has been updated #438

Open wael-fadlallah opened 2 years ago

wael-fadlallah commented 2 years ago

I have a form with three pickers, after the user fills that form I move him to a new screen with a button to fill another form, so when a user chooses to fill another form I empty the initial state in the component, but two out of the three pickers still showing the previously selected value with the label overlapping with it

I have checked the state and the value is empty, I have debugged the pickers and the value and selectedValue props are empty