Reputation: 417
How do i share an image from android gallery to react-native app?
I've added an intent-filter to my AndroidManifest.xml:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
How do i listen to the send intent?
Edit: I want to send an image from native image gallery to my react-native app, like sharing an image from gallery to instagram app.
Upvotes: 1
Views: 1554
Reputation: 417
There is currently no builtin method to handle this. So i wrote a simple native android module by my own.
Finally i found an extension which supports ios and android.
https://github.com/alinz/react-native-share-extension
Upvotes: 1