mmazzarolo / react-native-dialog

Pure JavaScript React-Native dialog
MIT License
681 stars 111 forks source link

Keyboard does not show up automatically when using Dialog.Input on Android #153

Open micpob opened 1 year ago

micpob commented 1 year ago

Environment

0.70.5

Platforms

Android

Description

Even if I set autoFocus={true} on Dialog.Input, when the dialog opens the keyboard will not appear until I click on the input field.

Reproducible Demo

handleSubmit(newTag)} value={newTag} placeholder="Add new tag here" /> handleSubmit(newTag)} />
micpob commented 1 year ago

I noticed that the issue does not happens and the keyboard is showed automatically if you render the Dialog.Container component conditionally (in my case with showAddTagForm && ) instead of just relying on the visible prop.

ReeceKenney commented 1 year ago

Also seeing this. When using it for apps on non touch devices (chromecast, tv etc.) I don't see a way to bring the keyboard up as I can't click into the textbox

pachun commented 6 months ago

Dialog.Input also accepts all the React-Native's TextInput component props.

Try adding the autoFocus prop to your Dialog.Input.