How to use react-native-share to share a photo on twitter? currently when I try to share its sharing the image link instead of proper image how can I share image instead of its uri the image is in the cloud can anyone help me how to do this with my react native app?
const HandleShareToTwitter = async () => {
const options = {
social: Share.Social.TWITTER,
message: 'Deserunt ea sint magna dolor incididunt sit culpa id laborum cupidata.',
url: image,
email: '[email protected]',
subject: 'Eiusmod esse veniam esse.',
recipient: '919988998899',
};
try {
const res = await Share.shareSingle(options)
console.log(res);
} catch (err) {
console.log(err);
}
}