Last active
August 24, 2017 20:59
-
-
Save krizzu/35a3e8e38d011b7f6e32f095ef41fac0 to your computer and use it in GitHub Desktop.
Changing background color of iOS rootView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation | |
moduleName:@"YourReactApp" | |
initialProperties:nil | |
launchOptions:launchOptions]; | |
// This line | |
rootView.backgroundColor = [[UIColor alloc] initWithRed:0.39 green:0.58 blue:0.67 alpha:1]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment