Questions tagged [react-share]

38 questions
0
votes
1 answer

Styling issue with react-share button and text

When I am trying to add text in front of FacebookIcon by using react-share, the text is not aligned to the icon. I have gone through the docs but couldn`t find anything useful. Sample code: https://codesandbox.io/s/rrlli?file=/src/App.js Library…
0
votes
0 answers

TwitterShareButton errors "AssertionError: twitter.url"

I am usning "react-share" package to share the content of the app on Twitter. Following is my code
0
votes
2 answers

Fix the upstream dependency conflict, react-share with React 18, Deployment failed in Netlify

Unable to install react-share on React 18 project and failed deployment on Netlify npm ERR! Could not resolve dependency: npm ERR! peer react@"^16.3.0 || ^17" from react-share@4.4.0 npm install --save --legacy-peer-deps react-share
Luis Rodrigues
  • 329
  • 3
  • 5
0
votes
2 answers

Parameter 'href' should represent a valid URL

I'm using next js and using react-share for share a page. My problem is when I try to share a page then show me error like this: Parameter 'href' should represent a valid URL I don't know why. I have tried like this way: import {FacebookIcon,…
Alamin
  • 1,878
  • 1
  • 14
  • 34
0
votes
2 answers

react-share Parameter 'href' should represent a valid URL

Am using react-share package for social sharing of my web page, but in FacebookShare button it shows an error like "Parameter 'href' should represent a valid URL" My Share.js code is:- import React from 'react' import { FacebookShareButton, …
0
votes
0 answers

Share to social network generated content to a client (Use React)

I encountered the problem of sharing social networks with a chained image on the client, I use react-share for this. But it requires in the parameters to write absolute paths for the picture. I’m trying to understand how to take and save a picture…
Ivan
  • 1
0
votes
1 answer

React / react-share - How can I share not only text but also a link insight my Email etc when sharing content on social media?

I am using react-share and I wonder how /if its possible to share a link insight the email, facebook, twitter etc? I was thinking of just including an a tag but that doesnt work and I> couldnt find anything online. Any ideas?…
2018code2018
  • 53
  • 2
  • 8
1 2
3