Closed ethanyuwang closed 5 years ago
if your targetSDKVersion is greater than 24, seems like it wont work
Doesnt work for me even with targetSDKVersion = 24
have a solution now?
@rasselll I have targetSdkVersion = 22 and it doesn't work
Any updates?
Any Updates?
Just a quick update I noticed that because of my other styles this was not working properly. I made changes to them and it worked. Hint: Check your styling.
@saurabhabh what styling changes did you make?
https://github.com/wix/react-native-zss-rich-text-editor/issues/138#issuecomment-441521534 - @ethanyuwang Check this comment. Check your flex direction. It only works for me if the parent container's flex direction is set to column.
Here is our solution: @ethanyuwang
@eladgel Can I ask you what changes you made in your fork?
@ethanyuwang just go to the fork and view the changed files
@eladgel Thanks a lot I have made mine working, but it seems like you only need to change WebViewBridgeManager.java
in react-native-webview-bridge
though? This is what I did:
Add new prop requestFocus
in react-native-webview-bridge
:
Add the prop in where you render RichTextEditor
as you mentioned:
@eladgel I have added the RNKeyboard
module from your reply but I found having it or not, focusing works properly on Android with just the two steps in my previous post.
I initialized a fresh react native project ("react-native": "0.55.4",) and copied the example code. However on Android
focusTitle
andfocusContent
both don't work---------------------------Update--------------------------------
focusContent
would not work initially. However, after I actually tap the editor to focus and then programmatically blur it,focusContent
would work as expected.