react-native-dropdown-select-list
react-native-dropdown-select-list copied to clipboard
defaultOption Support for multiple selection
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.
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
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.
I need to use defaultOptions on multipleSelect, please accpet this pull request asap!!!