File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11#import < React/RCTLog.h>
22#import < React/RCTUIManager.h>
33#import < React/RCTViewManager.h>
4-
4+ # import < React/RCTUtils.h >
55#import " RNDatePickerManager.h"
66#import " RCTConvert.h"
77#import " DatePicker.h"
@@ -94,7 +94,7 @@ - (UIView *)view
9494 dispatch_async (dispatch_get_main_queue (), ^{
9595
9696 bool iPad = UI_USER_INTERFACE_IDIOM () == UIUserInterfaceIdiomPad;
97- UIViewController *rootViewController = [UIApplication sharedApplication ]. delegate . window .rootViewController ;
97+ UIViewController *rootViewController = RCTKeyWindow () .rootViewController ;
9898 CGRect rootBounds = rootViewController.view .bounds ;
9999 NSString * title = [RCTConvert NSString: [props objectForKey: @" title" ]];
100100 title = [title isEqualToString: @" " ] ? nil : title;
You can’t perform that action at this time.
0 commit comments