Skip to content

Commit

Permalink
fix: Fixed white flash issue when starting app on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara committed Nov 2, 2023
1 parent 7bbe8d3 commit d28b200
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/mobile/ios/StandardNotes/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

[self clearWebEditorCache];

NSString *CFBundleIdentifier = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];

NSDictionary * initialProperties = @{@"env" : [CFBundleIdentifier isEqualToString:@"com.standardnotes.standardnotes.dev"] ? @"dev" : @"prod"};

self.moduleName = @"StandardNotes";
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
Expand Down

0 comments on commit d28b200

Please sign in to comment.