Status Bar always translucent after EAS build for Store and not in Dev-Client

  • 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:

  1. When the app is running on a DEV-Client, it works good and the StatusBar is white and non-translucent :+1::


    — a bit Scroll down

  2. When the app is builded with EAS with profile production and installed on my device, it not works and the StatusBar is always translucent :-1::


    ---- 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?

@bacon , @adamjnav , @notbrent , @wodin
Please do you have any idea how to fix it ?

which sdk version are you using?

Expo SDK 43.
I am already switched to EAS build.
So I am developing with custom DEV Clients including native libraries.

I finally fixed it by setting the following in file styles.xml :

<item name="android:windowTranslucentStatus">false</item>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.