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(); 
console.log('resultData',`data:image/png;base64,${resultData.uri}`)

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: 
![hmjsm|281x500](upload://terxmdAYZ3OLeULKE7xFUIJ0WvG.png)

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.

Cheers,

Adam

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