social share image with view normal image share with social media on your mobile

How do I share an image with preview? I have tried a lot of tutorials but I’m not getting any good answer. My code is below:

let resultData = await ImagePicker.launchImageLibraryAsync(); 

var content = {
    message :'This is Message',
    title:'This is title',
    url :`data:image/png;base64,${resultData.uri}`

Share.share(content).then(res =>{
    console.log('share response',res)

The functionality I need: 

Hey @dkandari,

Can you put your code into a Snack so I can try and help? One preliminary thought is that if you just put url: resultData.uri it may work.



This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.