diff --git a/React/Profiler/RCTProfile.m b/React/Profiler/RCTProfile.m index 8ee0a410d..b51a9bcc2 100644 --- a/React/Profiler/RCTProfile.m +++ b/React/Profiler/RCTProfile.m @@ -383,7 +383,10 @@ void RCTProfileUnhookModules(RCTBridge *bridge) #if !TARGET_OS_TV UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[[NSURL fileURLWithPath:outFile]] applicationActivities:nil]; - activityViewController.completionHandler = ^(__unused NSString *activityType, __unused BOOL completed) { + activityViewController.completionWithItemsHandler = ^(__unused UIActivityType activityType, + __unused BOOL completed, + __unused NSArray *items, + __unused NSError *error) { RCTProfileControlsWindow.hidden = NO; }; RCTProfileControlsWindow.hidden = YES;