Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
How to set up Editor Js in React-Native?

I have used Editor-JS in ReactJS and simple JS too. In react I have used react-editor-js package in ReactJS and trying to use the same in React-Native but it is giving a reference error:

Error: Requiring module "node_modules\react-editor-js\dist\react-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 'react-editor-js';

Initializing Editor

<EditorJs tools={EDITOR_JS_TOOLS} />

Editor Tools

import Paragraph from '@editorjs/paragraph''


export const EDITOR_JS_TOOLS = {
  paragraph: Paragraph,

}

I have tried to use the official EditorJS package too but it needs

<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.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda