Input text doesn't show keyboard on iOS simulator

后端 未结 2 393
遥遥无期
遥遥无期 2021-01-01 08:23

I\'m building an app and I need to use an input text.

The problem comes when you tap on this input text, the keyboard doesn\'t appear.

I don\'t know why, I d

2条回答
  •  悲&欢浪女
    2021-01-01 08:55

    I assume you are running this on the iOS simulator? Turn off the host machine's hardware keyboard integration by unchecking Hardware > Keyboard > Connect Hardware Keyboard, or you can use the Keyboard Shortcut: Shift + Cmd + K, and the keyboard will appear when you focus on a TextInput.

    You can also manually toggle the software keyboard visibility with Cmd +K.

    On a real device the keyboard should work out-of-the-box as expected.

提交回复
热议问题