react-native-search-api
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A React Native module that allows to perform the Spotlight integration on iOS", | ||
@@ -10,0 +10,0 @@ "author": "Daniil Konoplev <danchoys@ombori.com>", |
@@ -5,2 +5,23 @@ # React Native Search Api module | ||
## Installation | ||
### Automatic part | ||
1. `npm install react-native-search-api --save` | ||
1. `react-native link` | ||
### Manual part | ||
To the top of your `AppDelegate.m` add the following line: | ||
``` | ||
#import "RCTSearchApiManager.h" | ||
``` | ||
In your AppDelegate implementation add the following: | ||
``` | ||
- (BOOL)application:(UIApplication *)application continueUserActivity:(NSUserActivity *)userActivity restorationHandler:(void (^)(NSArray * _Nullable))restorationHandler { | ||
return [RCTSearchApiManager application:application continueUserActivity:userActivity restorationHandler:restorationHandler]; | ||
} | ||
``` | ||
## Usage | ||
@@ -7,0 +28,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30549
113