react-native-dropdown-picker icon indicating copy to clipboard operation
react-native-dropdown-picker copied to clipboard

Ignore Keyboard when selecting item in listMode="MODAL"

Open Bochereau opened this issue 2 years ago • 1 comments

Hi there.

I use a dropdown-picker to select a city in a list. For this I use the listMode="MODAL" with a search input. When I click to select a city the keyboard close first. So I have to click a second time to select a city and close the modal. So I'd like to skip the keyboard close action then I don't have to double click when selecting a city. In the same idea of keyboardShouldPersistTaps in ScrollView.

Someone has an idea for this ?

Bochereau avatar Feb 10 '23 15:02 Bochereau

Hi! the solution is to add this prop flatListProps={{ keyboardShouldPersistTaps: "always" }} https://github.com/hossein-zare/react-native-dropdown-picker/issues/235#issuecomment-859924303

VashaMasha avatar Jun 06 '23 17:06 VashaMasha