fix: Fixed white flash issue when starting app on iOS
This commit is contained in:
@@ -24,14 +24,14 @@
|
|||||||
|
|
||||||
[self clearWebEditorCache];
|
[self clearWebEditorCache];
|
||||||
|
|
||||||
NSString *CFBundleIdentifier = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
|
|
||||||
|
|
||||||
NSDictionary * initialProperties = @{@"env" : [CFBundleIdentifier isEqualToString:@"com.standardnotes.standardnotes.dev"] ? @"dev" : @"prod"};
|
|
||||||
|
|
||||||
self.moduleName = @"StandardNotes";
|
self.moduleName = @"StandardNotes";
|
||||||
self.initialProps = @{};
|
self.initialProps = @{};
|
||||||
|
|
||||||
return [super application:application didFinishLaunchingWithOptions:launchOptions];
|
BOOL success = [super application:application didFinishLaunchingWithOptions:launchOptions];
|
||||||
|
if (success) {
|
||||||
|
self.window.rootViewController.view.backgroundColor = [UIColor colorWithWhite:0.0 alpha:1.0];
|
||||||
|
}
|
||||||
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
|
||||||
|
|||||||
Reference in New Issue
Block a user