Permalink
Browse files

deleted UI Action Sheet Delegate Methods

Reviewed By: PeteTheHeat

Differential Revision: D8191111

fbshipit-source-id: 39867683cf5e0cdf8a94a76269d939b5ecf6bbd4
  • Loading branch information...
ziqichen6 authored and facebook-github-bot committed May 30, 2018
1 parent d8bf46a commit 5863b564f84b9fe97b256f8cde0f7f2e1db9b641
@@ -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;
@@ -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

0 comments on commit 5863b56

Please sign in to comment.