Skip to content

Commit 958186c

Browse files
petekeller2facebook-github-bot
authored andcommitted
Fix orientation change issue in HelloWord template (#20945)
Summary: This commit is related to issue #16060 Tested through the iOS simulator. Solution came from https://moduscreate.com/blog/changing-the-react-native-rootview-background-color-ios-and-android/ Pull Request resolved: facebook/react-native#20945 Differential Revision: D9661761 Pulled By: hramos fbshipit-source-id: ca8dd3fd09a0b0e89e1598a8114800808efa7d21
1 parent c3428a8 commit 958186c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/HelloWorld/ios/HelloWorld/AppDelegate.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
2222
moduleName:@"HelloWorld"
2323
initialProperties:nil
2424
launchOptions:launchOptions];
25-
rootView.backgroundColor = [[UIColor alloc] initWithRed:1.0f green:1.0f blue:1.0f alpha:1];
25+
rootView.backgroundColor = [UIColor blackColor];
2626

2727
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
2828
UIViewController *rootViewController = [UIViewController new];

0 commit comments

Comments
 (0)