Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a Keyboard on focus on text input?

In iOS simulator I can toggle software keyboard (⌘K) manually under Hardware main menu, and then tests pass. And I have to do it after Hardware Restart each time. But how can we make detox always open soft keyboard when an input field receives focus? Once soft keyboard is enabled it will stay enabled until next hardware restart, but tests will fail otherwise (soft keyboard won't show up on text input focus)

like image 337
mjakic Avatar asked Apr 12 '18 09:04

mjakic


1 Answers

We've recently changed the way we do typing in Detox. Starting with Detox 13, it is no longer necessary to disconnect the hardware keyboard and show the software keyboard. Please upgrade your Detox and you should see this new behavior immediately.

like image 184
Léo Natan Avatar answered Nov 15 '22 08:11

Léo Natan