wix-incubator/react-native-zss-rich-text-editor

Hide the Keyboard

JeremyBradshaw7 opened this issue · 3 comments

Is there any way to hide the keyboard while the editor is active? I want the editor to work on a tablet in landscape mode but with no way to hide the keyboard (other than by using the hide button on the keyboard itself, but it shows again on moving the caret) it's losing half the display to the keyboard. I predominantly want to use voice input rather than keyboard input, then my own toolbar to allow highlighting areas to adjust the style, the keyboard I only want to show on request via another button on the toolbar.

A programmatic Keyboard.dismiss() doesn't even work.

I'd like to use this library it looks fantastic, but without the ability to control the keyboard it might not be suitable for our needs.

@JeremyBradshaw7 have you found any workaround for this library?

@sergiulucaci no I had to ditch it and use a standard TextInput accepting markdown and translate that to html instead.

Keyboard.dismiss() doesn't work. It seems to be ignored or canceled in the library code itself. (I didn't look into the source code 😇)
Just use blurTitleEditor() or blurContentEditor() instead.