react-native-share: Preview Image not displaying

I’ve tried this with many configurations of url, urls, etc.

Steps to reproduce

  1. Call Share.open
  2. Set url: base64
const result = await Share.open({
            title: 'Share via',
            message:
              `I think you would like ${name}, check it out on Tabs App. https://tabs.page.link/app`,
            url: base64,
          }).then((res) => { console.log(res) })
          .catch((err) => { err && console.log(err); });

Expected behaviour

I would like users to be able to share Text with other users, and a preview image to show here (but not necessaril ypart of the actual share). I have seen this many times and it is the default behavior for iOS apps. I would at least expect to see an image that the user is sharing as a preview on the modal that pops up.

Screenshot 2019-10-28 14 45 05

Actual behaviour

Currently it shows a “T” as if to represent that it’s only text. When I go to actually send the SMS, etc it embeds the image.

I’ve seen the image be represented properly in other apps, it’s not exactly obvious why it’s not happening here.

Environment

  • React Native version: 0.61.2"
  • React Native platform + platform version: iOS 13.1

react-native-share

Version: master

Link to repo (highly encouraged)

https://github.com/

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 18

Most upvoted comments

I can reopen this, sure, but PLEASE STOP SPAMMING WITH +N COMMENTS. They are not useful. Useful == a PR to fix the bug Thank you 😃

Still issue is there 😞. +5

@jkincheloe33 @anisurrahman072 there is a comment above that is directed at you:

I can reopen this, sure, but PLEASE STOP SPAMMING WITH +N COMMENTS. They are not useful. Useful == a PR to fix the bug Thank you 😃

Open Source means you are the developer. You are the maintainer. There is no code fairy to fix things for you. We’re all people with limited time.

If this affects you replace the word “seems” in your comment with “I pulled the repo and altered may app to use it locally, I added some debugging statements and traced things, I discovered…” etc etc.

Do the work

i’ve the same problem !

Hello @danielfein, we have the exact same problem! Any solutions?