diff --git a/React/CoreModules/RCTActionSheetManager.mm b/React/CoreModules/RCTActionSheetManager.mm index ee3c7b69b44..08c5e68355f 100644 --- a/React/CoreModules/RCTActionSheetManager.mm +++ b/React/CoreModules/RCTActionSheetManager.mm @@ -23,11 +23,7 @@ using namespace facebook::react; @interface RCTActionSheetManager () @end -@implementation RCTActionSheetManager { - // Use NSMapTable, as UIAlertViews do not implement - // which is required for NSDictionary keys - NSMapTable *_callbacks; -} +@implementation RCTActionSheetManager RCT_EXPORT_MODULE() @@ -64,10 +60,6 @@ RCT_EXPORT_METHOD(showActionSheetWithOptions return; } - if (!_callbacks) { - _callbacks = [NSMapTable strongToStrongObjectsMapTable]; - } - NSString *title = options.title(); NSString *message = options.message(); NSArray *buttons = RCTConvertOptionalVecToArray(options.options(), ^id(NSString *element) {