richeditor-android icon indicating copy to clipboard operation
richeditor-android copied to clipboard

Migrating to React Native

Open cinder92 opened this issue 7 years ago • 3 comments

Hello, thanks for your module, i'm migrating this module to a react-native one, but when i pass the view reference to the RichText, i see this...

Attempt to invoke virtual method 'void jp.wasabeef.richeditor.RichEditor.buildLayer()' on a null object reference

java function

@ReactMethod
  public void init(int view){
    //view variable is an id, it comes from react
    RichEditor editor = (RichEditor) this.getCurrentActivity().findViewById(view);
   
    editor.setEditorHeight(400);
    editor.setHtml("<h3>This is a title</h3>");
  }

could you please tell me what im doing wrong?

maybe a builder?

cinder92 avatar Feb 19 '18 00:02 cinder92

Hello, Maybe you can view the document, http://facebook.github.io/react-native/docs/native-modules-android.html

TryImpossible avatar Apr 17 '18 02:04 TryImpossible

Hey did you succeed in migrating this to react native?

mobiledev06 avatar Jan 12 '19 19:01 mobiledev06

@mobiledev06 no, i need more hands

cinder92 avatar Mar 21 '19 09:03 cinder92