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 shareOptions = {
title: 'Ubud on Tap',
message: `${title} onTap. More http://www.example.com`,
url: shareImage,
type: 'image/png',
subject: 'hello world' // for email
};
Share.open(shareOptions);
}
here the issue is after I can share this content and the url (which contains the image) in remainder app as what I expected that is i can share the image and content.
But when i tried to share in hangouts and whatsapp its not sending with image instead it sending as the image url and content like below
http://35.185.176.191:8001/images/medias/152180604.png sample. More http://www.example.com
I want this to happen like remainder. I want to share the image and content in all the social applications.
based on my research I think the imageurl should convert into base64 format. But i don't know how to do that
thanks in advance