Reputation: 563
In my react native app, I get Message
test and ImageURL
string from server, which I need to share on FB, TWITTER, GOOGLE AND INSTAGRAM.
Note that, I am looking for libraries that works with both android and ios and able to share to all share media and should give some callback, so that I can get the event whether the image has been posted successfully or not.
I tried searching on net and also tried few libraries also, but I didn't got the expected outcome.
Should I have to use SDK for each social media? let me know your ideas, how should I proceed for this.
Thanks,
Upvotes: 3
Views: 2321
Reputation: 851
you can use Share
library of react-native, that will open a dialog to share text content containing links and other text stuff.
docs will be available here.
And if you want to share other stuff too, then you can use react-native-share module, that provide to share text + multimedia content on social apps.
If you want to share only text content then i recommend you to use Share
library of react-native.
Upvotes: 3