There is a white flash before the app loads on ios.
When you create a project with tns create project --ng and run the default app that is created there is a white flash before app load on ios. On android the app loads without any such visual problem.
iOS
To recreate the issue, tns create project --ng to generate a fresh project. Change the background color of the app component to the same as the splash screen. Then run tns run ios and observe a brief flash of white between the splash exit and app load. Run tns run android to see a completely smooth transition.
Output of tns create followed by change of background color -
https://github.com/anshul/nativescript-launch-issue
Thank you for reporting this issue.
I reviewed your case and found that the problem could be related with the delay with loading the component in NativeScript Angular 2 project. To be able to change this white color, which has been seen after the disappearing splash screen, you could set in your app.css file Page backgroundColor to be #272734. I am providing sample code below:
app.css
Page{
background-color:#272734;
}
Let me know whether this helps or if I could assist you further.
@tsonevn Thanks! This workaround does do the job.
@tsonevn this works except on iphone x where the top actionbar/"safe area" still stays white. Any workaround for that?
HI @dimitriospafos,
Can you provide sample project or at least some code snippets, which can be used for debugging the issue?
I set the margin to -44 in app.css and it seems like it鈥檚 working.
Thank you for your time.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
Thank you for reporting this issue.
I reviewed your case and found that the problem could be related with the delay with loading the component in
NativeScript Angular 2project. To be able to change this white color, which has been seen after the disappearing splash screen, you could set in yourapp.cssfilePagebackgroundColorto be#272734. I am providing sample code below:app.css
Let me know whether this helps or if I could assist you further.