Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

117
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda