Reputation: 51
When user click on share button of any video from You Tube or any other platform. and click my app from sharing list. then I want to show URL of that video in my app. (just like you see in Whatsapp or in any other app). please guide me over this for react native expo. Thanks.
I have tried These two but not working const url = await Linking.getInitialURL(); const sharedContent = await Sharing.getSharedTextAsync();
Upvotes: 0
Views: 517
Reputation: 4859
A standard solution should be app receives sharing intent from other apps and handle received content by MIME types (text, image, video,...) and display content with either Video Player or Image Viewer.
Note: Available packages are not supported by Expo - https://ajith-ab.github.io/react-native-receive-sharing-intent/
Upvotes: 0