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

206
Visualizações
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 à 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