Change Status Bar Color of Splash Screen

Author: heidtjohCreated Jul 29, 2020Updated Jul 29, 2020

Hi, is it possible to change the statusbar color of the splash screen (android)? I already tried the following things:

  • Changing primaryColorDark and statusBarColor of Kitten Tricks's splash theme in values/styles.xml. This will work for the start of the splash screen, but after a few milliseconds the status bar color of the splash screen changes back to gray.

  • Changing the backgroundcolor of androidStatusBar in /src/app/app.json also doesn't work.

  • Lastly I tried adding a StatusBar with my preferred color inside the AppLoading (/src/app/app-loading.component.tsx) component which again doesn't work:

<React.Fragment> <StatusBar backgroundColor="black"/> {!loading && props.children(loadingResult)} {props.placeholder && props.placeholder({ loading })} </React.Fragment>