Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

205
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!