You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{/* if component props will be changed like below. */}<PickerdefaultSelectedValue={0}selectedValue={someAwaitingValue/* it is undefined yet. */}>{items}</Picker>{/* vvvvvvvvvv */}<PickerdefaultSelectedValue={1}selectedValue={someAwaitingValue/* it is undefined yet. */}>{items}</Picker>
The condition for updating this.state.selectedValue is currently 'selectedValue' in nextProps.
This causes select method will update the selectedValue to be the first value of Picker.Item.
The text was updated successfully, but these errors were encountered:
The condition for updating
this.state.selectedValue
is currently'selectedValue' in nextProps
.This causes
select
method will update theselectedValue
to be the first value ofPicker.Item
.The text was updated successfully, but these errors were encountered: