UNPKG

626 BPlain TextView Raw
1/*
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#import "RCTUtilsUIOverride.h"
9
10@implementation RCTUtilsUIOverride
11
12static UIViewController *_presentedViewController = nil;
13
14+ (void)setPresentedViewController:(UIViewController *)presentedViewController
15{
16 _presentedViewController = presentedViewController;
17}
18
19+ (UIViewController *)presentedViewController
20{
21 return _presentedViewController;
22}
23
24+ (BOOL)hasPresentedViewController
25{
26 return _presentedViewController != nil;
27}
28
29@end