Questions tagged [react-share]
38 questions
1
vote
1 answer
is there a way to share react page on Facebook and pass an image?
am trying to make my react page shareable on Facebook and Twitter.
I tried everything I could, I have been googling all day, but I cant find the answer.
…

Y U K I M U R A
- 488
- 19
1
vote
0 answers
Implement Share Count In React With React-Share Package
I'm trying to implement share count with the react-share package but I still can't find a way around it. I used the Component everywhere in the app, and and every time I get 0 in the count although I share the URL several times.
This is the Facebook…

Zakaria Bennane
- 35
- 1
- 5
1
vote
0 answers
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…

gtd360
- 73
- 9
1
vote
0 answers
react-share library has not any function to detect shared link or closed dialog
I'm using react-share library to share social links. But seem library has not any function to detect user click share button or close button, I have tried onShareWindowClose function but it works with both cases shared and closed dialog. I need to…

Hải Bùi
- 2,492
- 2
- 9
- 17
1
vote
1 answer
How to share image as thumbnail using react share
How to share my image from server as thumbnail in react share for facebook ,whatsapp, twitter etc..
I tried with react helmet but no use

J.K Arun
- 31
- 3
1
vote
0 answers
How to store previous route in local storage using react functional component and react router
I am implementing a share post in my react web app. I am using react-share library. And I am passing the current URL using const shareUrl = window.location.href;
But the user tries to view the post using that URL which I shared. He is asked to log…

Nidhi S Bhat
- 11
- 3
1
vote
1 answer
react-share Compatibility issue with 15.x Version of react
I am using react-share with react 15.6 version. and getting the following error
TypeError: react__WEBPACK_IMPORTED_MODULE_9___default.a.forwardRef is not a function
Here is my Code Snippet
import {WhatsappShareButton, WhatsappIcon} from…

Pardeep Sharma
- 301
- 4
- 14
1
vote
1 answer
Using react-share with react-image-lightbox
I've taken over a React project and am fumbling incorporating react-share with react-image-lightbox. I'm pretty unfamiliar with React and Typescript all together so any insight is much appreciated.
Here's the relevant snippets:
import {
…

jon_childs
- 675
- 6
- 15
0
votes
0 answers
I'm using react-share and I'm having trouble adding an image to ,
So, I'm currently using react-share to share certain pages on my app to Faceboook.
In terms of sharing my pages to Facebook, it works fine. I can post my link on Facebook and when I click on it, it redirects me to whatever url is embedded on…

dho1115
- 11
- 1
0
votes
0 answers
react-share data not showing
I am working on adding social sharing buttons using Next.js 13 and react-share. Seems pretty simple however regardless of what I do it's not working. When clicking the TwitterShareButton below the only things that show are the url and title within…

AndrewLeonardi
- 3,351
- 9
- 47
- 100
0
votes
1 answer
React-share: How to pass image as thumbnail?
In my project, the react-share package is used for the share button functionality. I would like to send an image as a thumbnail along with the URL, but how can I make it happen?
…

user15361826
- 322
- 2
- 13
0
votes
0 answers
How can I dynamically generate Facebook and Twitter share images for specific sessions in my React app using react-share?
Dynamically Generating Images in Facebook and Twitter Cards: How to Achieve It?
I would like to implement a "Share to Facebook" or "Share to Twitter" feature in my React app.
In my React app, each user can have multiple sessions identified by a…

sai v
- 1
- 1
0
votes
0 answers
Share option in Flutter Webview using react-web-share
I have a app in flutter and using InAppWebView for opening a URL which is developed in React TypeScript.
On that URL page I have Share button.
So I want to share the data using installed apps from the mobile.
I tried using react-web-share Library.…

Ajay Naik
- 151
- 1
- 12
0
votes
0 answers
FacebookMessengerShareButton from react share npm
Cant figure out how to add FacebookMessengerShareButton from react share.
FacebookShareButton works with no issues, but i need Messenger button.
According to docs
https://www.npmjs.com/package/react-share
I need to add
appId (string): Facebook…

Simon Buryat
- 15
- 1
- 7
0
votes
0 answers
How to update URL before OnClick on FacebookShareButton
I have a React app i which I use React-Share - FacebookSharebutton. In the app user can create a list of pictures to be shared on Facebook. The list adds parameters to the URL as they are chosen and the URL can then be shared.My problem is that i…

T.Joe
- 1
- 3