How to set up Editor Js in React-Native? #1806
Unanswered
ayush-pradhan
asked this question in
Q&A
Replies: 2 comments
-
Well, this is because currently editorjs is just native web javascript application, not react native component... |
Beta Was this translation helpful? Give feedback.
0 replies
-
I current working at a library to solve this problem. If you want to test it, you can found at: https://www.npmjs.com/package/editorjs-viewer-native |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have used Editor-JS in ReactJS and simple JS too. In react I have used editor-js in ReactJS and trying to use the same in React-Native but it is giving a reference error:
Error: Requiring module "node_modules\editor-js\dist\editor-js.umd.js", which threw an exception: ReferenceError: Can't find variable: Element
I am new to Native and not able to resolve this error.
Code:
import EditorJS from 'editor-js';
Initializing Editor
<div id="editorjs"></div>
and id is not supported in React-Native. I can't use any other editor because whole of my app should be consistent with the Web app where EditorJS is being used.
Beta Was this translation helpful? Give feedback.
All reactions