Dark mode appears automatically

Please provide the following:

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): Android

I encountered the following problem: Even though I specified userInterfaceStyle to light in the app.json my app automatically is displayed in dark mode. This happens when my phone switches to the dark mode at a given time that I specified in the settings. I don’t encounter this problem when I start the app using expo. Only when I use a standalone app.

Is there any other setting I forgot?
If it helps: I use a Xiaomi 9T with MIUI Global 12.0.2

Hey @rooib,

Just to be cover all bases here, do you by chance have userInterfaceStyle set under the expo key and then have an android.userInterfaceStyle that could be overriding the first one? If not, this certainly seems peculiar. Any chance you’ve been able to test with a device other than the 9T?


The android.userInterfaceStyle is also set to light.
On my friends phone, which is a Mi 8 with MIUI global 11.0.5, it works just fine.

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