-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webView keyboard without arrows and "Done" button? #54
Comments
It might be possible but, why would you load website inside webview? I will try to see if I can make it happen but I will encourage you to rethink about this approach. |
I know what you mean. As I said, it's just a text editor. My whole app is build in React Native. It's just the text editor, because the TextInput is extremely limited. I need to edit inline links, italic, paragraphs, enter to split, backspace to combine while keeping the cursor in place, fonts, colors, photos, videos and custom elements, etc, etc. And I can align it with the text editor build into my site. If there was some sort of Rich Text in RN, it might be doable. But disabling the 300ms delay on click makes the text editor feel native (except for the Arrows/Done bar I described). I see the advantage of React Native for the rest of my app, but in this case I think loading a webView makes more sense.. I don't think it's bad to leverage the real web in React Native. And like I said, I think other people using this plugin would like the keyboard to feel 'native' too. |
@burnsting give me couple of days and I will get back to you! Your argument is also valid. |
Thanks! |
👍 @burnsting I'm actually trying to achieve exactly the same thing, a rich text editor using a js library. Almost everything works fine, but this toolbar is really annoying 😞 |
Thanks for implementing this @kemcake ! |
It's been merged. Thank you @kemcake. |
I know this is more React Native specific, but I figured a lot of people using the bridge would like to have this option.. Is there any way to disable the Arrows and 'Done' button above the keyboard in the webView?
I have a webView that loads a text editor that uses contentEditable text fields. But I have my own editor bar above the keyboard, and the safari bar above the keyboard makes it seem non-native.
Now it's like this: http://i.stack.imgur.com/Uz2Ly.png
But I want my own like this: http://www.geeky-gadgets.com/wp-content/uploads/2015/03/medium.jpg
I have found some solutions on how to do this, but I'm not able to implement it into the native code myself.
This code should work with iOS 9: http://stackoverflow.com/questions/19033292/ios-7-uiwebview-keyboard-issue/19042279#19042279
Here's a Cordova plugin that does the same (hideKeyboardAccessoryBar): https://github.com/driftyco/ionic-plugin-keyboard
The text was updated successfully, but these errors were encountered: