react native - Input text doesn't show keyboard on iOS simulator -


i'm building app , need use input text.

the problem comes when tap on input text, keyboard doesn't appear.

i don't know why, don't know i'm doing wrong. supposed straightforward.

here of code:

<view style={ styles.storycontentcontainer }>     <textinput ref='username' style={{width: 300, height: 20, borderwidth: 1,}}/> </view> 

and video show guys when input text gets focus nothing happen:

enter image description here

i hope guys can me issue.

i assume running on ios simulator? turn off host machine's hardware keyboard integration unchecking hardware > keyboard > connect hardware keyboard, or can use keyboard shortcut: shift + cmd + k, , keyboard appear when focus on textinput.

you can manually toggle software keyboard visibility cmd +k.

on real device keyboard should work out-of-the-box expected.


Comments