From fef947a7e121350017475872bb2ce49e643c172b Mon Sep 17 00:00:00 2001 From: Robert Herber Date: Sat, 18 Mar 2023 14:18:34 +0530 Subject: [PATCH] Allow other continueUserActivity handlers (#63) --- plugin/src/withSpotlight.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/src/withSpotlight.ts b/plugin/src/withSpotlight.ts index 266298e..3c58e99 100644 --- a/plugin/src/withSpotlight.ts +++ b/plugin/src/withSpotlight.ts @@ -12,8 +12,7 @@ const SPOTLIGHT_IMPORT = `#import "RCTSpotlightSearch.h" const SPOTLIGHT_ACTIVITY = `- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler {`; const SPOTLIGHT_ACTIVITY_ADD = `- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity restorationHandler:(nonnull void (^)(NSArray> * _Nullable))restorationHandler { - [RCTSpotlightSearch handleContinueUserActivity:userActivity]; - return YES;`; + [RCTSpotlightSearch handleContinueUserActivity:userActivity];`; const modifyAppDelegate = (appDelegate: string) => { if (!appDelegate.includes(SPOTLIGHT_IMPORT)) {