Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This package really is a life saver for us as it allows us to use a searchable dropdown inside a scrollview, other packages we could not use it and in our app we need drop downs everywhere. Though as this package uses scrollview instead of flatlist but even for 100-200 data in dropdowns it is performing quite well.
But the main problem right now with this package is we can't get default option working in MultiSelect Dropdown so if we want to pre-fill selected data then we were unable to do it.
So I have come up with a solution and fixed the multioption default option which was not working. Though I have tested But this feature is a much needed for me so I would request you to test and merge this fix.
In DefaultOption though instead of key value pair we have to give normal array of strings.
<MultipleSelectList setSelected={(val) => setSelected(val)} data={data} save="value" onSelect={() => alert(selected)} label="Categories" defaultOption={['Computers', 'Cameras']} />
So this is how we can use default option.