react-native-share-menu
Advanced tools
Comparing version
{ | ||
"name": "react-native-share-menu", | ||
"description": "Adds the app to share menu, so it can be launched from share menu and receive data from other apps", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"repository": { | ||
@@ -13,2 +13,3 @@ "type": "git", | ||
"android", | ||
"ios", | ||
"share" | ||
@@ -15,0 +16,0 @@ ], |
@@ -13,2 +13,4 @@ # react-native-share-menu | ||
## Usage in Android | ||
* In `android/settings.gradle` | ||
@@ -32,3 +34,3 @@ | ||
* In `android/src/main/AndroidManifest.xml` | ||
* In `android/app/src/main/AndroidManifest.xml` | ||
@@ -62,2 +64,12 @@ ```xml | ||
## Usage in iOS | ||
In the share extension `loadView()` method, add: | ||
```Objective-c | ||
NSExtensionItem *item = self.extensionContext.inputItems.firstObject; | ||
NSItemProvider *itemProvider = item.attachments.firstObject; | ||
[ShareMenuModule setShareMenuModule_itemProvider:itemProvider]; | ||
``` | ||
## Example | ||
@@ -104,5 +116,7 @@ | ||
Or check the "example" directory for an example application. | ||
## How it looks | ||
<img src="https://raw.githubusercontent.com/caiosba/react-native-share-menu/master/screenshots/menu.png" width="47%"> <img src="https://raw.githubusercontent.com/caiosba/react-native-share-menu/master/screenshots/android.png" width="47%"> | ||
<img src="https://raw.githubusercontent.com/caiosba/react-native-share-menu/master/screenshots/android-menu.png" width="47%"> <img src="https://raw.githubusercontent.com/caiosba/react-native-share-menu/master/screenshots/android-app.png" width="47%"> | ||
@@ -109,0 +123,0 @@ ## Credits |
Sorry, the diff of this file is not supported yet
113469
23.43%13
18.18%122
12.96%