- Workflow: Managed Workflow
-
eas-cli
version: 0.34.0
I am trying to set the Android StatusBar
to non-translucent with a white
background color.
I am using the package expo-status-bar
in version ~1.1.0 with the following code snippet in my App.tsx
:
<View style={{flex: 1}}>
<StatusBar
backgroundColor={'#ffffff'}
style={"dark"}
translucent={false}
/>
...
And also in my app.json
I configured it like this:
"androidStatusBar": {
"translucent": false,
"backgroundColor": "#ffffff",
"barStyle": "dark-content"
}
There are 2 cases:
-
When the app is running on a DEV-Client, it works good and the
StatusBar
iswhite
andnon-translucent
:
— a bit Scroll down
-
When the app is builded with EAS with profile
production
and installed on my device, it not works and theStatusBar
is alwaystranslucent
:
---- a bit Scroll down
So my question is how to make the StatusBar
always white
and non-translucent
after an EAS-Build
like in the 1.st case?