Cannot read property shareSingle of undefined
See original GitHub issueIn 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:
- Created 7 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I fixed this by running pod install in the iOS folder!
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