react-native-dropdown-select-list icon indicating copy to clipboard operation
react-native-dropdown-select-list copied to clipboard

defaultOption Support for multiple selection

Open onuraskinn opened this issue 1 year ago • 3 comments

I was using MultipleSelection in my react-native project , defaultOption props was not work , I have tried to add defaultSelected prop inside of this library . I also tested myself and it seems working ok for now you can also test it by yourself.

onuraskinn avatar Apr 26 '23 12:04 onuraskinn

Hi thanks for the commiting. What happends if my default is async? Waiting my API call to retrieve my default values. Renders empty array at the start because my state is empty at the start

RafaelCENG avatar Jul 18 '23 07:07 RafaelCENG

On your scenario , the code should have work as expected because the defaultOption variable set as any[] . You can also render whole component based on ur async API call result with conditional rendering.

onuraskinn avatar Jul 19 '23 10:07 onuraskinn

I need to use defaultOptions on multipleSelect, please accpet this pull request asap!!!

Gugarauj07 avatar Nov 22 '23 18:11 Gugarauj07