In react-native 's webview, how to focus an input without popping up a soft keyboard

problem description

now more than half of my page will be covered by a pop-up keyboard. In fact, I don"t need to enter it with a soft keyboard at all. I have an external code sweep gun

what result do you expect? What is the error message actually seen?

use rn"s webview to link to my URL, how to make an input focus without popping up a soft keyboard, just focus on it.


after you get the input, just backfill it


input is for playing the keyboard (or you can also call it an input control). Since you use a code sweep gun and do not need a keyboard at all, then input itself is not necessary. You can replace it with other text containers. Just add a UI that prompts the user to be in the input state (such as the flashing cursor, the box-shadow highlight of the input box, etc.), and then fill the input directly into the text container, the user experience is no different from the input.

Menu