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

207
Vistas
Get error with library react native share

I'm trying to share an image. I install react-native-share

npm i react-native-share --save

then import

import Share from 'react-native-share';

but when i try to use this library:

const Testing = () => {
    let shareImage = {
        title: 'React Native',
        url: 'https://static.wikia.nocookie.net/comicdc/images/d/d9/Batman_jim_lee.jpg/revision/latest/scale-to-width-down/280?cb=20140708014954&path-prefix=es'
    };

    Share.open(shareImage)
        .then((res) => {
            console.log(res);
        })
}

I get this error Uncaught TypeError: Cannot read properties of undefined (reading 'FACEBOOK') The error disappear when I delete:

Share.open(shareImage)
        .then((res) => {
            console.log(res);
        })

Frankly i don't know what to do, i have searched another ways (for example expo) to share an image for react native but nothing works

Error Image in Chrome

Error Image in Chrome

Error Image in Firefox

Error Image in Firefox

Thanks in advance

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