From 5863b564f84b9fe97b256f8cde0f7f2e1db9b641 Mon Sep 17 00:00:00 2001 From: Ziqi Chen Date: Wed, 30 May 2018 10:34:33 -0700 Subject: [PATCH] deleted UI Action Sheet Delegate Methods Reviewed By: PeteTheHeat Differential Revision: D8191111 fbshipit-source-id: 39867683cf5e0cdf8a94a76269d939b5ecf6bbd4 --- .../RCTActionSheet.xcodeproj/project.pbxproj | 2 -- Libraries/ActionSheetIOS/RCTActionSheetManager.m | 13 ------------- 2 files changed, 15 deletions(-) diff --git a/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj/project.pbxproj b/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj/project.pbxproj index 47a0b8b4d8bad7..a639137bb7bbb1 100644 --- a/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj/project.pbxproj +++ b/Libraries/ActionSheetIOS/RCTActionSheet.xcodeproj/project.pbxproj @@ -141,7 +141,6 @@ WARNING_CFLAGS = ( "-Werror", "-Wall", - "-Wno-deprecated-declarations", ); }; name = Debug; @@ -183,7 +182,6 @@ WARNING_CFLAGS = ( "-Werror", "-Wall", - "-Wno-deprecated-declarations", ); }; name = Release; diff --git a/Libraries/ActionSheetIOS/RCTActionSheetManager.m b/Libraries/ActionSheetIOS/RCTActionSheetManager.m index 91f047323769c7..cd5d5719ff769c 100644 --- a/Libraries/ActionSheetIOS/RCTActionSheetManager.m +++ b/Libraries/ActionSheetIOS/RCTActionSheetManager.m @@ -186,17 +186,4 @@ - (CGRect)sourceRectInView:(UIView *)sourceView shareController.view.tintColor = [RCTConvert UIColor:options[@"tintColor"]]; } -#pragma mark UIActionSheetDelegate Methods - -- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex -{ - RCTResponseSenderBlock callback = [_callbacks objectForKey:actionSheet]; - if (callback) { - callback(@[@(buttonIndex)]); - [_callbacks removeObjectForKey:actionSheet]; - } else { - RCTLogWarn(@"No callback registered for action sheet: %@", actionSheet.title); - } -} - @end