⚠️ This Repository Has been changed
react-native-receive-sharing-intent
new package :-⭐️ ⭐️ ⭐️ ⭐️
Demo
- React Native > 0.60 Support
- Easy implimentation
- Ios Directly Open Host app
- Multiple Files Share Both ios and Android
Android | Ios |
---|---|
![]() |
![]() |
react-native-file-share-intent
Adds the application to the share intent of the device, so it can be launched from other apps and receive data from them
Installation
- Install the module
npm i --save react-native-file-share-intent
Automatic Installation (React Native 0.36 - 0.59.9)
At the command line, in the project directory: only For Android
and in ios
use Manual installation
react-native link
Manual Installation
Donate
Example
For Android
App.js
;; ; { superprops; thisstate = fileUrl: null ; } { ifRNFileShareIntent RNFileShareIntent } { var uri = thisstatefileUrl; return <View style=flex:1justifyContent:'center'> <Text>Shared Url: uri</Text> </View> ; }
For IOS Share Extension View
Share.js in the Root Folder
;;; { superprops; thisstate = sharedText: null ; } { var that = this; RNFileShareIntent } { var url = thisstatesharedText; return <View style= flex: 1 justifyContent: 'center' > <Text style=stylestext>Shared file Path: url</Text> <Button title="open With Other App" color="#841584" onPress= RNFileShareIntent /> <Button title="Close Extension" color="#841584" onPress= RNFileShareIntent /> </View> } const styles = StyleSheet; AppRegistry;
Or check the "example" directory for an example application.
Preview
IOS
Android
Credits
Sponsored and developed by Ajith A B