deleted UI Action Sheet Delegate Methods

Reviewed By: PeteTheHeat

Differential Revision: D8191111

fbshipit-source-id: 39867683cf5e0cdf8a94a76269d939b5ecf6bbd4
This commit is contained in:
Ziqi Chen 2018-05-30 10:34:33 -07:00 committed by Facebook Github Bot
parent d8bf46ae90
commit 5863b564f8
2 changed files with 0 additions and 15 deletions

View File

@ -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;

View File

@ -186,17 +186,4 @@ RCT_EXPORT_METHOD(showShareActionSheetWithOptions:(NSDictionary *)options
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