react-native-share-menu
Advanced tools
Comparing version 4.1.1 to 4.1.3
{ | ||
"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": "4.1.1", | ||
"version": "4.1.3", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
@@ -140,5 +140,6 @@ # react-native-share-menu | ||
+target '<SHARE_EXTENSION_NAME>' do | ||
+ config = use_native_modules! | ||
+ use_react_native! | ||
+ | ||
+ use_react_native!(:path => config["reactNativePath"]) | ||
+ pod 'RNShareMenu', :path => '../node_modules/react-native-share-menu' | ||
+ # Manually link packages here to keep your extension bundle size minimal | ||
+end | ||
@@ -154,6 +155,6 @@ ``` | ||
- Selecting Add Files to "PROJECT_NAME" | ||
- Selecting New File... | ||
- Choose Swift | ||
- Make sure the selected target is your main app target | ||
- Create file and say yes to creating a Bridging Header file | ||
- Create the file and say yes to creating a Bridging Header file | ||
- Delete everything in the Swift file, but keep the file around | ||
@@ -239,2 +240,19 @@ </details> | ||
Right click on your Share Extension folder, and choose `New File...` | ||
Select Objective-C, make sure the target is your Share Extension | ||
Create the file and say yes when prompted to create a Bridging Header | ||
Delete the created `.m` file | ||
Add the following to the new `Bridging-Header.h` file: | ||
```Objective-c | ||
#import <React/RCTBridge.h> | ||
#import <React/RCTBundleURLProvider.h> | ||
#import <React/RCTBridgeDelegate.h> | ||
#import <React/RCTRootView.h> | ||
``` | ||
Right click on your Share Extension folder, and choose `Add Files to "ProjectName"` | ||
@@ -241,0 +259,0 @@ |
86142
459
36