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 best solutions below
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
- React Native: detect if UIVisualEffectView is supported
- Prevent Chrome debugger from stealing focus in React Native
- React-native upload image to amazons s3
- react-native update NavigatorIOS component's props
- promise – can't find variable process
- Using React Native within existing iOS app for some views only
- What is a good approach to building and distributing a React Native iOS component that extends iOS functionality?
- error in xcode 6 "is not registered as a URL scheme. Please add it in your Info.plist"
- DeviceEventEmitter stops emitting events to application when screen locked
- How to rename react-native entry file (index.ios.js)
- react-native component lifecycle methods not firing on navigation
- How to use comments in React
- react-native propagate changes in props through ListView and Navigator
- How do i use the iOS shake gesture with react native?
- TouchableHighlight won't accept press events while keyboard is open
Related Questions in SHARE
- UIActivityViewController optional / different Content for different ActivityTypes
- SpriteKit share button not working
- how to share different urls via uiactivityviewcontroller?
- Difficulty placing share button in wordpress
- Facebook Share - codes in description
- Local files shared between two projects stored in git
- android development: how does my intent / icon get added to user's list like other social media in Android
- How to put file from android app to pc in LAN network
- Facebook Share button (add "via page" to share)
- Intent Filter for app in share menu - only show if LOCAL files are shared
- How to get and store Twitter share counts in database?
- Sharing photo using facebook sdk 4.2.0
- Dealing with extensionContext.inputItems for ShareExtension. Why only get firstObject of inputItems?
- How to share an Custom Image on LinkedIn Share
- Android Wear : create an App chooser
Related Questions in IOS-SHARESHEET
- How do I share an Audio File in an App using Swift 3?
- How can I get "Save Image" as an option in the Share Sheet?
- How can I share a transparent PNG to iMessage from the Share Sheet?
- How can we exclude our own app (ios) from appearing in share sheet?
- Is there a way to tell if the user clicks on a recent contact from the React Native share sheet?
- How can I open my app directly from the iOS Share Sheet?
- Identifying a selection on share sheet?
- Display Share Sheet (UIActivityViewController) in a Modal .sheet() in SwiftUI
- UIActivityViewController: how to exclude own share extension from the activity displayed
- How can I get my SwiftUI app to show on the IOS Photos Share Sheet?
- How to share generated UIImage with siwft 4
- SwiftUI - Saving Image to Share Sheet causes image to save blurry/low res
- SwiftUI share sheet connection invalidated when creating new view
- iOS 15.4.0 ShareSheet _activityImage is not supported for proxies to out-of-process activities
- IOS crash - ShareSheet _UIShareServiceProxyRaiseInvocationUnsupportedForInstance
Related Questions in ANDROID-SHARESHEET
- Android 14 flag mutable
- ShareSheet Broadcast Receiver doesn't fire
- Android: How to hide activity (or make it transparent) while showing a bottom sheet?
- Android - Share content on social media
- 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
- sending link with preview using sharesheet
- Is it possible to only show your app as a receiver in the share sheet for a certain number of attachments for Android?
- Copy text event from Android share sheet
- Is it possible to create a custom share sheet in Flutter?
- how to remove or change icon from share sheet android
- Share Video Preview Image using ACTION_SEND with Android Sharesheet
- How do I add app to share menu for iOS/Android
- How to show React Native App in share sheet suggestions?
- Launching Sharesheet without Intent.createChooser
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)
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?
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).