I am new to React native. I am developing an app to receive shared url like in youtube share which shares the url. I have added the code to register receive activity in xml like this
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
But in my App.js code how could i receive the data and do further processing.
You can use Deep Linking from react-navigation
. Check this Article for example.
You can do this with react-native-share-extension
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With