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

Adding Auto Focus when opening modal with searchable

Open BatuhanCakir opened this issue 2 years ago • 2 comments

Is there a way to set the Search Component Text input to Autofocus ?. I even think it could be the default behaviour.

BatuhanCakir avatar Jun 13 '23 14:06 BatuhanCakir

I was able to do this by adding this.

searchTextInputProps={{ autoFocus: true }}

travisfalls avatar Aug 14 '23 15:08 travisfalls

I was able to do this by adding this.

searchTextInputProps={{ autoFocus: true }}

Did you also manage to get the keyboard to open? When I add autoFocus: true I can see the cursor flashing in the field, but the keyboard has not opened. I can also not find any way to pass a reference into the TextInput to be able to manually call focus() with the onOpen function.

julianpensionjar avatar May 13 '24 10:05 julianpensionjar