mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 04:24:15 +00:00
27 lines
602 B
Mathematica
27 lines
602 B
Mathematica
|
/**
|
||
|
* Copyright (c) 2015-present, Facebook, Inc.
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* This source code is licensed under the BSD-style license found in the
|
||
|
* LICENSE file in the root directory of this source tree. An additional grant
|
||
|
* of patent rights can be found in the PATENTS file in the same directory.
|
||
|
*/
|
||
|
|
||
|
#import "RCTModalManager.h"
|
||
|
|
||
|
@implementation RCTModalManager
|
||
|
|
||
|
RCT_EXPORT_MODULE();
|
||
|
|
||
|
- (NSArray<NSString *> *)supportedEvents
|
||
|
{
|
||
|
return @[ @"modalDismissed" ];
|
||
|
}
|
||
|
|
||
|
- (void)modalDismissed:(NSNumber *)modalID
|
||
|
{
|
||
|
[self sendEventWithName:@"modalDismissed" body:@{ @"modalID": modalID }];
|
||
|
}
|
||
|
|
||
|
@end
|