├── .npmignore ├── Example ├── .watchmanconfig ├── .gitattributes ├── app.json ├── .eslintrc.js ├── babel.config.js ├── android │ ├── .settings │ │ └── org.eclipse.buildship.core.prefs │ ├── app │ │ ├── .settings │ │ │ └── org.eclipse.buildship.core.prefs │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ │ └── mipmap-xxxhdpi │ │ │ │ │ │ ├── ic_launcher.png │ │ │ │ │ │ └── ic_launcher_round.png │ │ │ │ ├── java │ │ │ │ │ └── com │ │ │ │ │ │ └── example │ │ │ │ │ │ ├── MainActivity.java │ │ │ │ │ │ └── MainApplication.java │ │ │ │ └── AndroidManifest.xml │ │ │ └── debug │ │ │ │ └── AndroidManifest.xml │ │ ├── .classpath │ │ ├── proguard-rules.pro │ │ ├── build_defs.bzl │ │ ├── .project │ │ ├── BUCK │ │ └── build.gradle │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── settings.gradle │ ├── .project │ ├── gradle.properties │ ├── build.gradle │ ├── gradlew.bat │ └── gradlew ├── ios │ ├── Example │ │ ├── Images.xcassets │ │ │ ├── Contents.json │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── AppDelegate.h │ │ ├── main.m │ │ ├── AppDelegate.m │ │ ├── Info.plist │ │ └── Base.lproj │ │ │ └── LaunchScreen.xib │ ├── Example.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── Share Intent │ │ ├── ShareViewController.h │ │ ├── Info.plist │ │ ├── ShareViewController.m │ │ └── Base.lproj │ │ │ └── MainInterface.storyboard │ ├── ExampleTests │ │ ├── Info.plist │ │ └── ExampleTests.m │ ├── Example-tvOSTests │ │ └── Info.plist │ ├── Example-tvOS │ │ └── Info.plist │ ├── Podfile │ ├── Example.xcodeproj │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── Share Intent.xcscheme │ │ │ ├── Example.xcscheme │ │ │ └── Example-tvOS.xcscheme │ └── Podfile.lock ├── .buckconfig ├── _prettierrc.js ├── index.js ├── __tests__ │ └── App-test.js ├── metro.config.js ├── App.js ├── package.json ├── .gitignore ├── Share.js └── .flowconfig ├── android ├── build │ ├── intermediates │ │ ├── library_java_res │ │ │ └── debug │ │ │ │ └── res.jar │ │ ├── annotation_processor_list │ │ │ └── debug │ │ │ │ └── annotationProcessors.json │ │ ├── incremental │ │ │ ├── packageDebugResources │ │ │ │ ├── compile-file-map.properties │ │ │ │ └── merger.xml │ │ │ ├── debug-mergeJniLibs │ │ │ │ └── merge-state │ │ │ ├── mergeDebugShaders │ │ │ │ └── merger.xml │ │ │ ├── mergeDebugJniLibFolders │ │ │ │ └── merger.xml │ │ │ └── packageDebugAssets │ │ │ │ └── merger.xml │ │ ├── transforms │ │ │ └── mergeJniLibs │ │ │ │ └── debug │ │ │ │ └── __content__.json │ │ ├── compile_library_classes │ │ │ └── debug │ │ │ │ └── classes.jar │ │ ├── runtime_library_classes │ │ │ └── debug │ │ │ │ └── classes.jar │ │ ├── compile_only_not_namespaced_r_class_jar │ │ │ └── debug │ │ │ │ └── generateDebugRFile │ │ │ │ └── R.jar │ │ ├── javac │ │ │ └── debug │ │ │ │ └── compileDebugJavaWithJavac │ │ │ │ └── classes │ │ │ │ └── com │ │ │ │ └── ajithab │ │ │ │ ├── BuildConfig.class │ │ │ │ ├── RNFileShareIntentModule.class │ │ │ │ └── RNFileShareIntentPackage.class │ │ ├── merged_manifests │ │ │ ├── debugAndroidTest │ │ │ │ ├── output.json │ │ │ │ └── AndroidManifest.xml │ │ │ └── debug │ │ │ │ └── output.json │ │ ├── aapt_friendly_merged_manifests │ │ │ └── debug │ │ │ │ └── aapt │ │ │ │ ├── output.json │ │ │ │ └── AndroidManifest.xml │ │ └── library_manifest │ │ │ └── debug │ │ │ └── AndroidManifest.xml │ ├── generated │ │ └── source │ │ │ └── buildConfig │ │ │ ├── debug │ │ │ └── com │ │ │ │ └── ajithab │ │ │ │ └── BuildConfig.java │ │ │ └── androidTest │ │ │ └── debug │ │ │ └── com │ │ │ └── ajithab │ │ │ └── test │ │ │ └── BuildConfig.java │ └── outputs │ │ └── logs │ │ └── manifest-merger-debug-report.txt ├── .DS_Store ├── src │ ├── .DS_Store │ └── main │ │ ├── .DS_Store │ │ ├── java │ │ ├── .DS_Store │ │ └── com │ │ │ ├── .DS_Store │ │ │ └── ajithab │ │ │ ├── RNFileShareIntentPackage.java │ │ │ └── RNFileShareIntentModule.java │ │ └── AndroidManifest.xml ├── .settings │ └── org.eclipse.buildship.core.prefs ├── .project ├── build.gradle ├── README.md └── react-native-file-share-intent.iml ├── .DS_Store ├── assets ├── ios.png ├── .DS_Store ├── android .png ├── appgroup.png ├── ios_intent.png ├── ios_setup_12.png ├── ios_step_01.png ├── ios_step_02.png ├── ios_step_03.png ├── ios_step_04.png ├── ios_step_05.png ├── ios_step_06.png ├── ios_step_07.png ├── ios_step_08.png ├── ios_step_09.png ├── ios_step_10.png ├── ios_step_11.png └── android_intent.png ├── ios ├── .DS_Store ├── RNFileShareIntent.xcodeproj │ ├── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcuserdata │ │ │ └── ajithab.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── xcuserdata │ │ └── ajithab.xcuserdatad │ │ │ └── xcschemes │ │ │ └── xcschememanagement.plist │ └── project.pbxproj ├── RNFileShareIntent.xcworkspace │ └── contents.xcworkspacedata ├── src │ ├── RNFileShareIntent.h │ └── RNFileShareIntent.m ├── RNFileShareIntent.podspec └── README.md ├── index.js ├── .vscode └── settings.json ├── package.json └── README.md /.npmignore: -------------------------------------------------------------------------------- 1 | Example/ -------------------------------------------------------------------------------- /Example/.watchmanconfig: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /Example/.gitattributes: -------------------------------------------------------------------------------- 1 | *.pbxproj -text 2 | -------------------------------------------------------------------------------- /Example/app.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Example", 3 | "displayName": "Example" 4 | } -------------------------------------------------------------------------------- /android/build/intermediates/library_java_res/debug/res.jar: -------------------------------------------------------------------------------- 1 | PK -------------------------------------------------------------------------------- /android/build/intermediates/annotation_processor_list/debug/annotationProcessors.json: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/.DS_Store -------------------------------------------------------------------------------- /assets/ios.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios.png -------------------------------------------------------------------------------- /ios/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/ios/.DS_Store -------------------------------------------------------------------------------- /assets/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/.DS_Store -------------------------------------------------------------------------------- /Example/.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | root: true, 3 | extends: '@react-native-community', 4 | }; 5 | -------------------------------------------------------------------------------- /Example/babel.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | presets: ['module:metro-react-native-babel-preset'], 3 | }; 4 | -------------------------------------------------------------------------------- /android/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/.DS_Store -------------------------------------------------------------------------------- /assets/android .png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/android .png -------------------------------------------------------------------------------- /assets/appgroup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/appgroup.png -------------------------------------------------------------------------------- /android/src/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/src/.DS_Store -------------------------------------------------------------------------------- /assets/ios_intent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_intent.png -------------------------------------------------------------------------------- /Example/android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir= 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/build/intermediates/incremental/packageDebugResources/compile-file-map.properties: -------------------------------------------------------------------------------- 1 | #Thu Aug 15 23:11:33 IST 2019 2 | -------------------------------------------------------------------------------- /assets/ios_setup_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_setup_12.png -------------------------------------------------------------------------------- /assets/ios_step_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_01.png -------------------------------------------------------------------------------- /assets/ios_step_02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_02.png -------------------------------------------------------------------------------- /assets/ios_step_03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_03.png -------------------------------------------------------------------------------- /assets/ios_step_04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_04.png -------------------------------------------------------------------------------- /assets/ios_step_05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_05.png -------------------------------------------------------------------------------- /assets/ios_step_06.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_06.png -------------------------------------------------------------------------------- /assets/ios_step_07.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_07.png -------------------------------------------------------------------------------- /assets/ios_step_08.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_08.png -------------------------------------------------------------------------------- /assets/ios_step_09.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_09.png -------------------------------------------------------------------------------- /assets/ios_step_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_10.png -------------------------------------------------------------------------------- /assets/ios_step_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/ios_step_11.png -------------------------------------------------------------------------------- /Example/android/app/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | connection.project.dir=.. 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /android/src/main/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/src/main/.DS_Store -------------------------------------------------------------------------------- /assets/android_intent.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/assets/android_intent.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Example 3 | 4 | -------------------------------------------------------------------------------- /Example/ios/Example/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /android/src/main/java/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/src/main/java/.DS_Store -------------------------------------------------------------------------------- /android/src/main/java/com/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/src/main/java/com/.DS_Store -------------------------------------------------------------------------------- /Example/.buckconfig: -------------------------------------------------------------------------------- 1 | 2 | [android] 3 | target = Google Inc.:Google APIs:23 4 | 5 | [maven_repositories] 6 | central = https://repo1.maven.org/maven2 7 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 2 | import { NativeModules } from 'react-native'; 3 | const { RNFileShareIntent } = NativeModules; 4 | export default RNFileShareIntent; 5 | 6 | -------------------------------------------------------------------------------- /Example/_prettierrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | bracketSpacing: false, 3 | jsxBracketSameLine: true, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | }; 7 | -------------------------------------------------------------------------------- /Example/android/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /android/build/intermediates/transforms/mergeJniLibs/debug/__content__.json: -------------------------------------------------------------------------------- 1 | [{"name":"resources","index":0,"scopes":["PROJECT"],"types":["NATIVE_LIBS"],"format":"DIRECTORY","present":false}] -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "files.exclude": { 3 | "**/.classpath": true, 4 | "**/.project": true, 5 | "**/.settings": true, 6 | "**/.factorypath": true 7 | } 8 | } -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /Example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/Example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png -------------------------------------------------------------------------------- /android/build/intermediates/compile_library_classes/debug/classes.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/build/intermediates/compile_library_classes/debug/classes.jar -------------------------------------------------------------------------------- /android/build/intermediates/runtime_library_classes/debug/classes.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/build/intermediates/runtime_library_classes/debug/classes.jar -------------------------------------------------------------------------------- /android/build/intermediates/incremental/debug-mergeJniLibs/merge-state: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/build/intermediates/incremental/debug-mergeJniLibs/merge-state -------------------------------------------------------------------------------- /Example/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'Example' 2 | apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) 3 | include ':app' 4 | -------------------------------------------------------------------------------- /ios/RNFileShareIntent.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import {AppRegistry} from 'react-native'; 6 | import App from './App'; 7 | import {name as appName} from './app.json'; 8 | 9 | AppRegistry.registerComponent(appName, () => App); 10 | -------------------------------------------------------------------------------- /android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/generateDebugRFile/R.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/build/intermediates/compile_only_not_namespaced_r_class_jar/debug/generateDebugRFile/R.jar -------------------------------------------------------------------------------- /ios/RNFileShareIntent.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | 3 | 5 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | -------------------------------------------------------------------------------- /android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/ajithab/BuildConfig.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/ajithab/BuildConfig.class -------------------------------------------------------------------------------- /ios/RNFileShareIntent.xcodeproj/project.xcworkspace/xcuserdata/ajithab.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/ios/RNFileShareIntent.xcodeproj/project.xcworkspace/xcuserdata/ajithab.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/ajithab/RNFileShareIntentModule.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/ajithab/RNFileShareIntentModule.class -------------------------------------------------------------------------------- /android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/ajithab/RNFileShareIntentPackage.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ajith-ab/react-native-file-share-intent/HEAD/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/ajithab/RNFileShareIntentPackage.class -------------------------------------------------------------------------------- /ios/src/RNFileShareIntent.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | @interface RNFileShareIntent : NSObject 4 | +(void) setShareFileIntentModule_itemProvider: (NSItemProvider*) itemProvider; 5 | +(void) setContext: (NSExtensionContext*) context; 6 | @end 7 | -------------------------------------------------------------------------------- /Example/ios/Example.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /Example/ios/Example.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ios/RNFileShareIntent.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/__tests__/App-test.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @format 3 | */ 4 | 5 | import 'react-native'; 6 | import React from 'react'; 7 | import App from '../App'; 8 | 9 | // Note: test renderer must be required after react-native. 10 | import renderer from 'react-test-renderer'; 11 | 12 | it('renders correctly', () => { 13 | renderer.create(); 14 | }); 15 | -------------------------------------------------------------------------------- /Example/ios/Share Intent/ShareViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ShareViewController.h 3 | // Share Intent 4 | // 5 | // Created by Ajith A B on 16/08/19. 6 | // Copyright © 2019 Facebook. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | @interface ShareViewController : UIViewController 13 | 14 | @end 15 | -------------------------------------------------------------------------------- /android/build/intermediates/merged_manifests/debugAndroidTest/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"react-native-file-share-intent-debug-androidTest.apk","fullName":"debugAndroidTest","baseName":"debug-androidTest"},"path":"AndroidManifest.xml","properties":{}}] -------------------------------------------------------------------------------- /android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"AAPT_FRIENDLY_MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"react-native-file-share-intent-debug.aar","fullName":"debug","baseName":"debug"},"path":"AndroidManifest.xml","properties":{"packageId":"com.ajithab","split":""}}] -------------------------------------------------------------------------------- /android/build/intermediates/merged_manifests/debug/output.json: -------------------------------------------------------------------------------- 1 | [{"outputType":{"type":"MERGED_MANIFESTS"},"apkData":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0","enabled":true,"outputFile":"react-native-file-share-intent-debug.aar","fullName":"debug","baseName":"debug"},"path":"../../library_manifest/debug/AndroidManifest.xml","properties":{"packageId":"com.ajithab","split":""}}] -------------------------------------------------------------------------------- /Example/android/app/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /Example/metro.config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Metro configuration for React Native 3 | * https://github.com/facebook/react-native 4 | * 5 | * @format 6 | */ 7 | 8 | module.exports = { 9 | transformer: { 10 | getTransformOptions: async () => ({ 11 | transform: { 12 | experimentalImportSupport: false, 13 | inlineRequires: false, 14 | }, 15 | }), 16 | }, 17 | }; 18 | -------------------------------------------------------------------------------- /android/build/intermediates/library_manifest/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /android/.settings/org.eclipse.buildship.core.prefs: -------------------------------------------------------------------------------- 1 | arguments= 2 | auto.sync=false 3 | build.scans.enabled=false 4 | connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(5.4)) 5 | connection.project.dir= 6 | eclipse.preferences.version=1 7 | gradle.user.home= 8 | java.home= 9 | jvm.arguments= 10 | offline.mode=false 11 | override.workspace.settings=true 12 | show.console.view=true 13 | show.executions.view=true 14 | -------------------------------------------------------------------------------- /android/build/intermediates/aapt_friendly_merged_manifests/debug/aapt/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 10 | 11 | -------------------------------------------------------------------------------- /Example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Example/android/app/src/main/java/com/example/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example; 2 | 3 | import com.facebook.react.ReactActivity; 4 | 5 | public class MainActivity extends ReactActivity { 6 | 7 | /** 8 | * Returns the name of the main component registered from JavaScript. 9 | * This is used to schedule rendering of the component. 10 | */ 11 | @Override 12 | protected String getMainComponentName() { 13 | return "Example"; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Example/ios/Example/AppDelegate.h: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (nonatomic, strong) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Example/ios/Example/main.m: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright (c) Facebook, Inc. and its affiliates. 3 | * 4 | * This source code is licensed under the MIT license found in the 5 | * LICENSE file in the root directory of this source tree. 6 | */ 7 | 8 | #import 9 | 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /ios/RNFileShareIntent.xcodeproj/xcuserdata/ajithab.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | RNFileShareIntent.xcscheme_^#shared#^_ 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /Example/android/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/Cellar/android-sdk/24.3.3/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | -------------------------------------------------------------------------------- /android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | android 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /Example/android/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | Example 4 | Project android created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.buildship.core.gradleprojectbuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.buildship.core.gradleprojectnature 16 | 17 | 18 | -------------------------------------------------------------------------------- /android/build/generated/source/buildConfig/debug/com/ajithab/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Automatically generated file. DO NOT MODIFY 3 | */ 4 | package com.ajithab; 5 | 6 | public final class BuildConfig { 7 | public static final boolean DEBUG = Boolean.parseBoolean("true"); 8 | public static final String APPLICATION_ID = "com.ajithab"; 9 | public static final String BUILD_TYPE = "debug"; 10 | public static final String FLAVOR = ""; 11 | public static final int VERSION_CODE = 1; 12 | public static final String VERSION_NAME = "1.0"; 13 | } 14 | -------------------------------------------------------------------------------- /android/build/generated/source/buildConfig/androidTest/debug/com/ajithab/test/BuildConfig.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Automatically generated file. DO NOT MODIFY 3 | */ 4 | package com.ajithab.test; 5 | 6 | public final class BuildConfig { 7 | public static final boolean DEBUG = Boolean.parseBoolean("true"); 8 | public static final String APPLICATION_ID = "com.ajithab.test"; 9 | public static final String BUILD_TYPE = "debug"; 10 | public static final String FLAVOR = ""; 11 | public static final int VERSION_CODE = 1; 12 | public static final String VERSION_NAME = "1.0"; 13 | } 14 | -------------------------------------------------------------------------------- /android/build/intermediates/incremental/mergeDebugShaders/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Example/android/app/build_defs.bzl: -------------------------------------------------------------------------------- 1 | """Helper definitions to glob .aar and .jar targets""" 2 | 3 | def create_aar_targets(aarfiles): 4 | for aarfile in aarfiles: 5 | name = "aars__" + aarfile[aarfile.rindex("/") + 1:aarfile.rindex(".aar")] 6 | lib_deps.append(":" + name) 7 | android_prebuilt_aar( 8 | name = name, 9 | aar = aarfile, 10 | ) 11 | 12 | def create_jar_targets(jarfiles): 13 | for jarfile in jarfiles: 14 | name = "jars__" + jarfile[jarfile.rindex("/") + 1:jarfile.rindex(".jar")] 15 | lib_deps.append(":" + name) 16 | prebuilt_jar( 17 | name = name, 18 | binary_jar = jarfile, 19 | ) 20 | -------------------------------------------------------------------------------- /Example/android/app/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | app 4 | Project app created by Buildship. 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.buildship.core.gradleprojectbuilder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.jdt.core.javanature 21 | org.eclipse.buildship.core.gradleprojectnature 22 | 23 | 24 | -------------------------------------------------------------------------------- /android/build.gradle: -------------------------------------------------------------------------------- 1 | 2 | buildscript { 3 | repositories { 4 | jcenter() 5 | } 6 | 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:1.3.1' 9 | } 10 | } 11 | 12 | apply plugin: 'com.android.library' 13 | 14 | android { 15 | compileSdkVersion 23 16 | buildToolsVersion "23.0.1" 17 | 18 | defaultConfig { 19 | minSdkVersion 16 20 | targetSdkVersion 22 21 | versionCode 1 22 | versionName "1.0" 23 | } 24 | lintOptions { 25 | abortOnError false 26 | } 27 | } 28 | 29 | repositories { 30 | mavenCentral() 31 | } 32 | 33 | dependencies { 34 | implementation 'com.facebook.react:react-native:+' 35 | } 36 | -------------------------------------------------------------------------------- /ios/RNFileShareIntent.podspec: -------------------------------------------------------------------------------- 1 | 2 | require 'json' 3 | 4 | package = JSON.parse(File.read(File.join(__dir__, '..', 'package.json'))) 5 | 6 | 7 | Pod::Spec.new do |s| 8 | s.name = "RNFileShareIntent" 9 | s.version = package['version'] 10 | s.summary = package['description'] 11 | s.license = package['license'] 12 | 13 | s.authors = package['author'] 14 | s.homepage = package['homepage'] 15 | s.platform = :ios, "7.0" 16 | s.source = { :git => "https://github.com/author/RNFileShareIntent.git", :tag => "master" } 17 | s.source_files = "RNFileShareIntent/**/*.{h,m}" 18 | s.requires_arc = true 19 | 20 | 21 | s.dependency "React" 22 | #s.dependency "others" 23 | 24 | end 25 | 26 | 27 | -------------------------------------------------------------------------------- /android/build/intermediates/incremental/packageDebugAssets/merger.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Example/App.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import {Text,View} from 'react-native'; 3 | 4 | import RNFileShareIntent from 'react-native-file-share-intent'; 5 | 6 | export default class App extends Component { 7 | constructor(props) { 8 | super(props); 9 | this.state = { 10 | fileUrl: null, 11 | }; 12 | } 13 | 14 | componentDidMount() { 15 | if(RNFileShareIntent){ 16 | RNFileShareIntent.getFilepath((url) => { 17 | this.setState({ fileUrl: url }); 18 | }) 19 | } 20 | 21 | } 22 | render() { 23 | var uri = this.state.fileUrl; 24 | return ( 25 | 26 | Shared Url: {uri} 27 | 28 | ); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Example/ios/Example/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /Example/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Example", 3 | "version": "0.0.1", 4 | "private": true, 5 | "scripts": { 6 | "start": "react-native start", 7 | "test": "jest", 8 | "lint": "eslint ." 9 | }, 10 | "dependencies": { 11 | "react": "16.8.6", 12 | "react-native": "0.60.5", 13 | "react-native-file-share-intent": "^1.0.7", 14 | "react-native-share-extension": "^2.0.0" 15 | }, 16 | "devDependencies": { 17 | "@babel/core": "7.5.5", 18 | "@babel/runtime": "7.5.5", 19 | "@react-native-community/eslint-config": "0.0.3", 20 | "babel-jest": "24.8.0", 21 | "eslint": "6.1.0", 22 | "jest": "24.8.0", 23 | "metro-react-native-babel-preset": "0.54.1", 24 | "react-test-renderer": "16.8.6" 25 | }, 26 | "jest": { 27 | "preset": "react-native" 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-native-file-share-intent", 3 | "version": "1.1.3", 4 | "description": "Adds the app to share menu, so it can be launched from share menu and receive data from other apps", 5 | "main": "", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/ajith-ab/react-native-file-share-intent.git" 12 | }, 13 | "keywords": [ 14 | "ios", 15 | "android", 16 | "react-native", 17 | "share", 18 | "extension" 19 | ], 20 | "author": "Ajith A B", 21 | "license": "ISC", 22 | "bugs": { 23 | "url": "https://github.com/ajith-ab/react-native-file-share-intent/issues" 24 | }, 25 | "homepage": "https://github.com/ajith-ab/react-native-file-share-intent#readme" 26 | } 27 | -------------------------------------------------------------------------------- /Example/ios/ExampleTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /android/build/intermediates/merged_manifests/debugAndroidTest/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 8 | 9 | 15 | 16 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Example/ios/Example-tvOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | org.reactjs.native.example.$(PRODUCT_NAME:rfc1034identifier) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Gradle settings configured through the IDE *will override* 5 | # any settings specified in this file. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | 20 | android.useAndroidX=true 21 | android.enableJetifier=true 22 | -------------------------------------------------------------------------------- /Example/.gitignore: -------------------------------------------------------------------------------- 1 | # OSX 2 | # 3 | .DS_Store 4 | 5 | # Xcode 6 | # 7 | build/ 8 | *.pbxuser 9 | !default.pbxuser 10 | *.mode1v3 11 | !default.mode1v3 12 | *.mode2v3 13 | !default.mode2v3 14 | *.perspectivev3 15 | !default.perspectivev3 16 | xcuserdata 17 | *.xccheckout 18 | *.moved-aside 19 | DerivedData 20 | *.hmap 21 | *.ipa 22 | *.xcuserstate 23 | project.xcworkspace 24 | 25 | # Android/IntelliJ 26 | # 27 | build/ 28 | .idea 29 | .gradle 30 | local.properties 31 | *.iml 32 | 33 | # node.js 34 | # 35 | node_modules/ 36 | npm-debug.log 37 | yarn-error.log 38 | 39 | # BUCK 40 | buck-out/ 41 | \.buckd/ 42 | *.keystore 43 | 44 | # fastlane 45 | # 46 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 47 | # screenshots whenever they are needed. 48 | # For more information about the recommended setup visit: 49 | # https://docs.fastlane.tools/best-practices/source-control/ 50 | 51 | */fastlane/report.xml 52 | */fastlane/Preview.html 53 | */fastlane/screenshots 54 | 55 | # Bundle artifact 56 | *.jsbundle 57 | 58 | # CocoaPods 59 | /ios/Pods/ 60 | -------------------------------------------------------------------------------- /Example/android/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | ext { 5 | buildToolsVersion = "28.0.3" 6 | minSdkVersion = 16 7 | compileSdkVersion = 28 8 | targetSdkVersion = 28 9 | supportLibVersion = "28.0.0" 10 | } 11 | repositories { 12 | google() 13 | jcenter() 14 | } 15 | dependencies { 16 | classpath("com.android.tools.build:gradle:3.4.1") 17 | 18 | // NOTE: Do not place your application dependencies here; they belong 19 | // in the individual module build.gradle files 20 | } 21 | } 22 | 23 | allprojects { 24 | repositories { 25 | mavenLocal() 26 | maven { 27 | // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm 28 | url("$rootDir/../node_modules/react-native/android") 29 | } 30 | maven { 31 | // Android JSC is installed from npm 32 | url("$rootDir/../node_modules/jsc-android/dist") 33 | } 34 | 35 | google() 36 | jcenter() 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Example/android/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 13 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /android/src/main/java/com/ajithab/RNFileShareIntentPackage.java: -------------------------------------------------------------------------------- 1 | 2 | package com.ajithab; 3 | 4 | import java.util.ArrayList; 5 | import java.util.Arrays; 6 | import java.util.Collections; 7 | import java.util.List; 8 | 9 | import com.facebook.react.ReactPackage; 10 | import com.facebook.react.bridge.NativeModule; 11 | import com.facebook.react.bridge.ReactApplicationContext; 12 | import com.facebook.react.uimanager.ViewManager; 13 | import com.facebook.react.bridge.JavaScriptModule; 14 | 15 | import com.ajithab.RNFileShareIntentModule; 16 | 17 | public class RNFileShareIntentPackage implements ReactPackage { 18 | // @Override 19 | // public List createNativeModules(ReactApplicationContext reactContext) { 20 | // return Arrays.asList(new RNFileShareIntentModule(reactContext)); 21 | // } 22 | 23 | // Deprecated from RN 0.47 24 | public List> createJSModules() { 25 | return Collections.emptyList(); 26 | } 27 | 28 | @Override 29 | public List createNativeModules(ReactApplicationContext reactContext) { 30 | List modules = new ArrayList<>(); 31 | modules.add(new RNFileShareIntentModule(reactContext)); 32 | return modules; 33 | } 34 | 35 | @Override 36 | public List createViewManagers(ReactApplicationContext reactContext) { 37 | return Collections.emptyList(); 38 | } 39 | } -------------------------------------------------------------------------------- /Example/android/app/BUCK: -------------------------------------------------------------------------------- 1 | # To learn about Buck see [Docs](https://buckbuild.com/). 2 | # To run your application with Buck: 3 | # - install Buck 4 | # - `npm start` - to start the packager 5 | # - `cd android` 6 | # - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"` 7 | # - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck 8 | # - `buck install -r android/app` - compile, install and run application 9 | # 10 | 11 | load(":build_defs.bzl", "create_aar_targets", "create_jar_targets") 12 | 13 | lib_deps = [] 14 | 15 | create_aar_targets(glob(["libs/*.aar"])) 16 | 17 | create_jar_targets(glob(["libs/*.jar"])) 18 | 19 | android_library( 20 | name = "all-libs", 21 | exported_deps = lib_deps, 22 | ) 23 | 24 | android_library( 25 | name = "app-code", 26 | srcs = glob([ 27 | "src/main/java/**/*.java", 28 | ]), 29 | deps = [ 30 | ":all-libs", 31 | ":build_config", 32 | ":res", 33 | ], 34 | ) 35 | 36 | android_build_config( 37 | name = "build_config", 38 | package = "com.example", 39 | ) 40 | 41 | android_resource( 42 | name = "res", 43 | package = "com.example", 44 | res = "src/main/res", 45 | ) 46 | 47 | android_binary( 48 | name = "app", 49 | keystore = "//android/keystores:debug", 50 | manifest = "src/main/AndroidManifest.xml", 51 | package_type = "debug", 52 | deps = [ 53 | ":app-code", 54 | ], 55 | ) 56 | -------------------------------------------------------------------------------- /Example/Share.js: -------------------------------------------------------------------------------- 1 | import React, { Component } from 'react'; 2 | import { View, Text, AppRegistry, StyleSheet, Button } from 'react-native'; 3 | import RNFileShareIntent from 'react-native-file-share-intent'; 4 | export default class Share extends Component { 5 | constructor(props) { 6 | super(props); 7 | this.state = { 8 | sharedText: null 9 | }; 10 | } 11 | componentDidMount() { 12 | var that = this; 13 | RNFileShareIntent.getFilePath((text) => { 14 | that.setState({ sharedText: text }); 15 | 16 | }) 17 | } 18 | 19 | render() { 20 | var url = this.state.sharedText; 21 | return ( 22 | 23 | Shared file Path: {url} 24 |