Fix colors in RCTDevLoadingView
Reviewed By: martinbigio Differential Revision: D2862821 fb-gh-sync-id: d763985cc499fc49d7ed1b25341d19b80e1be55d
This commit is contained in:
parent
1d819e9503
commit
04d14e5a2e
|
@ -79,12 +79,12 @@ RCT_EXPORT_MODULE()
|
||||||
|
|
||||||
NSString *source;
|
NSString *source;
|
||||||
if (URL.fileURL) {
|
if (URL.fileURL) {
|
||||||
_window.backgroundColor = [UIColor greenColor];
|
|
||||||
_label.textColor = [UIColor whiteColor];
|
|
||||||
source = @"pre-bundled file";
|
|
||||||
} else {
|
|
||||||
_window.backgroundColor = [UIColor blackColor];
|
_window.backgroundColor = [UIColor blackColor];
|
||||||
_label.textColor = [UIColor grayColor];
|
_label.textColor = [UIColor grayColor];
|
||||||
|
source = @"pre-bundled file";
|
||||||
|
} else {
|
||||||
|
_window.backgroundColor = [UIColor colorWithHue:1./3 saturation:1 brightness:.35 alpha:1];
|
||||||
|
_label.textColor = [UIColor whiteColor];
|
||||||
source = [NSString stringWithFormat:@"%@:%@", URL.host, URL.port];
|
source = [NSString stringWithFormat:@"%@:%@", URL.host, URL.port];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue