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
I'd like to define a placeholder item, in case there is no value selected upfront.
This doesn't seem to work.
At the moment I solve this by adding a placeholder item into my array first and then not rendering a selection option for it, when opening the Picker Items.
categories: [{id: 0,name: 'Choose a category'},{id: 1,name: 'Art'},{id: 2,name: 'Music'}],
I would like something like just setting the placeholder via the placeholder prop on the Picker, or just use the already existing prompt prop on the picker to display this.
The text was updated successfully, but these errors were encountered:
I'd like to define a placeholder item, in case there is no value selected upfront.
This doesn't seem to work.
At the moment I solve this by adding a placeholder item into my array first and then not rendering a selection option for it, when opening the Picker Items.
Is there any other way that is better?
I would like something like just setting the placeholder via the placeholder prop on the Picker, or just use the already existing prompt prop on the picker to display this.
The text was updated successfully, but these errors were encountered: