So currently, the only way to have this working properly is to use a dark navigation in my app so that I don't need to have a different color for status bar when opening form sheet. When You are not using AppBar you can use AnnotatedRegion to change the color of status bar, but if you have AppBar this method doesn’t work (Both iOS and Android) 3. It's only when opened as form sheet that the problem occurs. The status bar is now not visible.Īm I supposed to set manually the status bar color when closing the modal page? I don't think so as if the same page is opened full screen, the status bar color alternate properly between white and black. It remains in the color set by the modal page.
#Ios 11 status bar color how to
Again, everything is fine.įinally, when I dismiss the modal page, the status bar do not revert to original color. How to change status bar color to match app Android - This example demonstrates how do I change the status bar color to match app Android.Step 1 Create a n. This makes the status bar text color switch to white. headerStyle: It is used to add style to the header bar. headerTitle: It is used to set the title of the active screen. The navigation options are a static property of the screen component which is either an object or a function.
As the top of the screen is black, I need to set BarTextColor to white in page to see the status bar (navigation is still light but I set the text color to black in title view). To configure the header bar of a React Native application, the navigation options are used. I then load a page in modal as form sheet. The status bar text is set accordingly and everything is fine. On my app, have a white navigation with texts in black.