MIUI Forcing Light Mode on Android

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

I was testing my app in MIUI device and I noticed that the whole app is in dark mode
My design is a hybrid design between light and dark and that’s an issue for me , all screens are now dark mode in an ugly way
Even the images ! , I have an image with a white background , they convert it into black background
I set userInterfaceStyle in app.json but nothing changed

Is there any way to force light mode on the app besides using android:forceDarkAllowed , because ejecting is not an option for me

Thank you very much

2 Likes

Same on my side. Is there a way to set android flag or is there a bug in

android:forceDarkAllowed

the

"userInterfaceStyle": "light"

flag?

1 Like

Btw I am using a Webview where all styles are inverted… I need to disable this!

Example:

<AppearanceProvider>
  <SafeAreaView>
    <WebView source={{ uri: "https://google.com/" }} />
  </SafeAreaView>
</AppearanceProvider>;

No one??

1 Like

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