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