Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Posting on social media accounts in React Native APP

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,

like image 220
BeingExpert Avatar asked Nov 17 '25 22:11

BeingExpert


1 Answers

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.

like image 104
Prince Avatar answered Nov 19 '25 11:11

Prince



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!