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

React Native rich text editor based on ZSSRichTextEditor
Other
841 stars 311 forks source link

Hide the Keyboard #150

Open JeremyBradshaw7 opened 5 years ago

JeremyBradshaw7 commented 5 years ago

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.

sergiulucaci commented 5 years ago

@JeremyBradshaw7 have you found any workaround for this library?

JeremyBradshaw7 commented 5 years ago

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

saeromCho commented 4 years ago

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.