Closed Xyzor closed 5 years ago
it is not possible as long as result list is a modal. you can't interact with input because it is outside modal
there is have any way to keep open the keyboard without hiding the keyboard.
Reopening for further discussion as it's a pretty serious drawback for this library.
Took a look at this briefly, and came too a few conclusions...
<Autocomplete />
component or not.<Modal />
to make an overlapping component hides the keyboard immediately as already pointed out.In order to solve this we probably need to take one of these approaches...
1) Expand the <Autocomplete />
component when showing the dropdown pushing anything below it down instead of trying to overlap it, looks less cool but resolves a significant issue imo.
2) Perhaps do something with native code which would add significant complexity to this library.
Created a PR for expanding the component, only minor issue is if you use this component in a ScrollView/FlatList be sure to set keyboardShouldPersistTaps="always"
so you can tap on the results when the keyboard is still visible.
Currently after search, it shows the result list, but loses the focus on the input.
Is there a solution to focus the selected input after search or to pass down a ref prop?