2

How can I share images and text using CRNA (create react native app) on facebook/twitter?

I went through the documentation, but I could not find anything.

Any leads here is appreciated.

ThinkGeek
  • 4,749
  • 13
  • 44
  • 91

1 Answers1

2

You can use the Share API (https://reactnative.dev/docs/share) of React Native to show the native sharing dialog of iOS/Android.

Muhammad Numan
  • 23,222
  • 6
  • 63
  • 80
fson
  • 860
  • 8
  • 9
  • I checked this , but was facing some issues hence logged https://stackoverflow.com/questions/49093270/react-native-share-examples and it looks like people misunderstood my intentions and started downvoting my question :( – ThinkGeek Mar 06 '18 at 16:21
  • On iOS you can remove sharing methods from the dialog that pops up using the `excludedActivityTypes` setting. See this example: https://snack.expo.io/@bacon/share:-excluded-activity-types. – fson Mar 07 '18 at 12:50