I want to use Share functionally in my React Native application but there is one exception, I don't want to share a content from my app, I want to share content from another app to my app, how is it possible to show my App in share sheet suggestions and handle shared data?
How to show React Native App in share sheet suggestions?
1.9k views Asked by Leri Gogsadze At
2
There are 2 answers
3
Adnan Ashraf
On
i used this package to implement share extension for both ios and android . https://github.com/meedan/react-native-share-menu
Related Questions in REACT-NATIVE
- ussd reader in Recket Native module
- I can't make TextInput to auto expand properly in Android
- expo config plugin use import instead of require
- Custom Sound for Expo Push Notifications Only Works in Foreground
- run RTK dispatch on gesture start with React Native
- Should I set Back-End for my React Native application?
- using infoPlist in app.json for expo project seems to not be working
- Anyone have success configuring react-native-home-indicator?
- KeyboardAvoidingView makes a messy the flexbox
- I am getting lots of errors when building react native app in Xcode
- Search and highlight text of current text in PDFKit Swift
- Flatlist Sometimes Capped at 10 Items Bug
- Is there any way to page transition in react native (stack navigation)
- Screen inside Stack.Navigator not visible in React-Native
- React Native stopwatch implementation slow on iOS
Related Questions in SHARE
- og:image not found when share on linkedin
- Request for Rui Li twitter dataset
- How to modify share sheet and add custom button in Swift UI
- PowerShell Script for checking contents of log file in network share
- Cannot get NET SHARE to work with spaced variables
- Failed to find configured root that contains /file:/storage/emulated/0/Android/data
- My app is not showing in IOS Share menu. Share extensions seems to be working but it's not showing m app
- REACT NATIVE - EXPO: I can't open a shared file with my app
- Android intent filter not restricting app to handle only YouTube links
- Is it possible to add a custom share action to my app which is visible in another app as well?
- When Webview load iframe and any page from that loaded iframe url, Share is not working in app
- Sharing a page to LinkedIn returns an error
- Docker / NGINX / Network Share
- Share photos and link using FBSDKShareKit on IOS
- How Can I Share Live Locations in My App without need for Installation
Related Questions in IOS-SHARESHEET
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- SwiftUI ShareLink with custom actions
- ShareLink for multiple items always says x images, regardless of type
- Is there a way to retrieve multiple files (files-urls) through the iOS share sheet (Activity View) without using the iOS share extension?
- Link Preview - Instagram Share Sheet
- How can we exclude our own app (ios) from appearing in share sheet?
- How can I share a transparent PNG to iMessage from the Share Sheet?
- How can I get "Save Image" as an option in the Share Sheet?
- Button Tap - ShareSheet rootViewController Issue
- Any way make Messages on iOS open a share sheet for non "public.text" conformant UTI type if contents are text?
- ShareSheet fails to open a local file
- How to make a ShareLink send an uneditable message - SwiftUI
- share sheet with custom link
- Unable to share image directly to Instagram in iOS
- How to show React Native App in share sheet suggestions?
Related Questions in ANDROID-SHARESHEET
- ShareSheet Broadcast Receiver doesn't fire
- Android 14 flag mutable
- Copy text event from Android share sheet
- How to show React Native App in share sheet suggestions?
- Is it possible to create a custom share sheet in Flutter?
- Is there a way to track when the "Copy" link button is tapped in the Android system share sheet?
- Android sharesheet download file after destination selection
- How do I add app to share menu for iOS/Android
- Share Video Preview Image using ACTION_SEND with Android Sharesheet
- Android: How to hide activity (or make it transparent) while showing a bottom sheet?
- how to remove or change icon from share sheet android
- Is it possible to only show your app as a receiver in the share sheet for a certain number of attachments for Android?
- Android - Share content on social media
- sending link with preview using sharesheet
- Launching Sharesheet without Intent.createChooser
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Adding your own Share Extension (iOS) or Share Intent (Android) to a React Native app is a little tricky, unfortunately. On iOS for example, this requires setting up a whole app extension including some native code which often ends up very decoupled from the rest of the React Native app.
See here for Android documentation and here for iOS documentation on the native parts.
There are some third-party libraries like react-native-share-extension that make this somewhat easier, even though it still requires some set-up. If you're using Expo, all solutions might end up being problematic due to the required app extension on iOS which might even be complex to setup using Expo config plugins (even though it's probably possible!).
Another problem you might face is that, at least on iOS, the amount of memory a Share Extension can use is very limited for a React Native app. Even a very basic extension might be killed by the OS due to an out of memory signal. A relatively easy way (which still requires a lot of native code) to circumvent this might be to simply link into your app once someone clicks on your share extension, instead of adding actual native UI for the modal of the iOS extension (which requires more memory). Here's a Medium article of someone who's done this already (and faced the same issues).