Phecda

refactor: use system background color in rootView

@@ -43,8 +43,12 @@ static void InitializeFlipper(UIApplication *application) { @@ -43,8 +43,12 @@ static void InitializeFlipper(UIApplication *application) {
43 RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge 43 RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
44 moduleName:@"NGPlay" 44 moduleName:@"NGPlay"
45 initialProperties:nil]; 45 initialProperties:nil];
46 - 46 +
47 - rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1]; 47 + if (@available(iOS 13.0, *)) {
  48 + rootView.backgroundColor = [UIColor systemBackgroundColor];
  49 + } else {
  50 + rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
  51 + }
48 52
49 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; 53 self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
50 UIViewController *rootViewController = [UIViewController new]; 54 UIViewController *rootViewController = [UIViewController new];