Questions tagged [react-native-share]
40 questions
4
votes
1 answer
React Native Error - TypeError: null is not an object (evaluating '_reactNative.NativeModules.RNShare.FACEBOOK')
I'm working on react native project and I am using expo. I want to add the react-native-share package to my project, however I keep getting this error before I even add any code.
TypeError: null is not an object (evaluating…

Kevin B.
- 75
- 1
- 7
4
votes
1 answer
convert image url into base64 format for react native share
I am trying to share something in react-native-share. I am getting image url from service that is here response url
then here is my code what I tried.
_shareTextWithTitle () {
const { title, shareImage } = this.props;
console.log(shareImage);
const…

khalifathul
- 558
- 1
- 10
- 24
3
votes
2 answers
Share.open() not sharing images in android
I'm using the latest version of react-native-share (9.2.3) for sharing images from my app using share.open() command.
The Share.open() works fine on IOS, but sharing options don't open on Android 11 or greater, and no error is thrown as well.
Can…

Kp2206
- 31
- 2
3
votes
1 answer
shareSingle from react-native-share does not work for WhatsApp in Android 11
React Native Share singleShare is not working. Tried out everything as mentioned in the blog post here:
https://medium.com/androiddevelopers/package-visibility-in-android-11-cc857f221cd9
Still no luck. Please help.
Code snapshot:
let shareOptions =…

Dibyajyoti Mishra
- 456
- 5
- 13
2
votes
0 answers
React-Native-Share - [Error: User did not share]
I'm having trouble with sharing email.
I'm trying to share email with URL. It opens the Gmail form and fills all the data but when I'm clicking on send button It shows an error [Error: User did not share].
Code:
let imagePath = null;
…

Odium
- 87
- 8
2
votes
0 answers
How do I add app to share menu for iOS/Android
I'm trying to add my app to the list of available shares for other apps, and I wanted to make sure I had it right. The documentation doesn't explicitly state this, and I really want to be sure of what it means before I move forward:
Every app that…

Joel Hager
- 2,990
- 3
- 15
- 44
2
votes
2 answers
"null is not an object (evaluating '_reactNative.NativeModules.RNShare.FACEBOOK')" Import raising Issue
I'm currently trying to build an App with React Native in which the user can enter data, generate a QR-Code and then also share that same QR-Code.
Entering the Data and generating the QR-Code is working as intended. However the sharing is what's…

toni
- 21
- 1
- 3
2
votes
1 answer
Huawei Device doesn't return promise success or error in react-native-share
Hi we are using the following library in our app, It works fine in Android and iOS but in Huawei devices the Share.open() doesn't return anything.
This is the library which we are using to share some texts.
import Share from…

virtualpathum
- 753
- 2
- 11
- 23
2
votes
0 answers
How to share text with image in facebook feed using react-native-share?
I want to share an image with some predefined text on Facebook. To share the image I am using react-native-share. I am able to share the image but the text fields always come as empty. I am sharing the code I am using below. If someone knows a way…

Prince Mittal
- 326
- 3
- 15
1
vote
0 answers
How can i share an image and a message on instagram and receive feedback whether it was shared or not on a react-native mobile app?
I want to share an image and some text on instagram and should be able to know wether i shared successfully or not,maybe have something like a callback that indicates that. I tried react-native-share but have found certain issues with it which…

David Tembo
- 79
- 3
- 10
1
vote
2 answers
how to fix error NativeAnimatedModule on react native
I got this error after installing the react-native-share & react-native-view-shot library
Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code:…

putu eka mulyana
- 331
- 2
- 9
1
vote
1 answer
react-native-share instagram story doesn't work on Android [React Native]
I'm using react-native-share to share content on instagram stories.
On iOS, it works fine; however, on Android, it does not resolve the promise and does not display any error.
import { default as RNShare } from "react-native-share";
const…

PietroPutelli
- 482
- 4
- 20
1
vote
2 answers
I am using the React-Native Share.But isn't supported in Web.It gives the following error. Error: Share is not supported in this browser
i am I am using the React-Native Share. But isn't supported in Web. It gives the following error.
Error: Share is not supported in this browser
How can i use it with browser support?
const onShare = async () => {
try {
//…

Shahjahan Mukhtar
- 23
- 3
1
vote
1 answer
react-native-share The operation couldn’t be completed. Not installed
I installed the react-native-share package but I can't share directly to Twitter on IOS. It's working perfectly on Android.
I get this error:
{
"error": {
"code": "ECOM.RNSHARE1",
"domain": "com.rnshare",
"message": "The operation…

XplosiVe06
- 568
- 3
- 23
1
vote
1 answer
react-native-share App crashing after trying to share Android
I'm trying to use react-native-share to share a QR code on my react native app, unfortunately once I press the send button to share the image the app crashes and sometimes the share is completed sometimes it isn't. I'm not sure were this error might…

user3487815
- 15
- 1
- 5