Skip to content

Commit

Permalink
deleted UI Action Sheet Delegate Methods
Browse files Browse the repository at this point in the history
Reviewed By: PeteTheHeat

Differential Revision: D8191111

fbshipit-source-id: 39867683cf5e0cdf8a94a76269d939b5ecf6bbd4
  • Loading branch information
Ziqi Chen authored and facebook-github-bot committed May 30, 2018
1 parent d8bf46a commit 5863b56
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@
WARNING_CFLAGS = (
"-Werror",
"-Wall",
"-Wno-deprecated-declarations",
);
};
name = Debug;
Expand Down Expand Up @@ -183,7 +182,6 @@
WARNING_CFLAGS = (
"-Werror",
"-Wall",
"-Wno-deprecated-declarations",
);
};
name = Release;
Expand Down
13 changes: 0 additions & 13 deletions Libraries/ActionSheetIOS/RCTActionSheetManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -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.