question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property shareSingle of undefined

See original GitHub issue

In my Buttons, the onPress function throws the error I copied in the title. Any idea why? I imported Share at the top of my file like so: import Share, { ShareSheet, Button } from ‘react-native-share’;

<Button iconSrc={{ uri: EMAIL_ICON }} onPress={() => { this.onCancel(); setTimeout(() => { Share.shareSingle(Object.assign(shareOptions, { social: 'email', })); }, 300); }} > Email </Button>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
aaronkchsucommented, Apr 16, 2018

I fixed this by running pod install in the iOS folder!

0reactions
agrawalocommented, Mar 3, 2018

Facing same issue with Android and ios both. What should I do to fix this? https://stackoverflow.com/questions/49082623/react-native-share-promise-rejection-error

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property shareSingle of undefined #54 - GitHub
In my Buttons, the onPress function throws the error I copied in the title. Any idea why? I imported Share at the top...
Read more >
Get TypeError: Cannot read property of undefined
I am new to react and I try to get data from the backend and display. const { id } = useParams(); console.log(id); ......
Read more >
ERROR TypeError: Cannot read properties of undefined (reading ...
Queries related to “ERROR TypeError: Cannot read properties of undefined (reading 'day')”. This version of CLI is only compatible with Angular versions ...
Read more >
Share.shareSingle | React Native Share - GitHub Pages
The shareSingle() method allows a user to share a premade message via a single prechosen social medium. In other words, code specifies both...
Read more >
Custom Query – jQuery - Bug Tracker
#14613 · Extended objects share single array, bug, undecided, None, core ... #14642 · Cannot read property 'style' of undefined, bug, undecided, None ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found