@ahmad.mu (Ahmad Mu) posted a new topic, subject "MIUI Forcing Light Mode on Android". It read:

   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

After which, @mitchobrian (Michael Palmer) added

    Same on my side. Is there a way to set android flag or is there a bug in
    [code] 
        android:forceDarkAllowed
        
    [/code]
    
    the
    [code] 
        "userInterfaceStyle": "light"
        
    [/code]
    
    flag?

After which, @mitchobrian (Michael Palmer) added

    Btw I am using a Webview where all styles are inverted… I need to **disable** this!
    
    Example:
    [code] 
        <AppearanceProvider>
          <SafeAreaView>
            <WebView source={{ uri: "https://google.com/" }} />
          </SafeAreaView>
        </AppearanceProvider>;
        
    [/code]

To which @mitchobrian (Michael Palmer) replied

    No one??

After which, @system (system) added

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


{'source': 'discourse', 'url': 'https://forums.expo.dev/t/miui-forcing-light-mode-on-android/51611', 'title': 'MIUI Forcing Light Mode on Android', 'views': 464, 'has_accepted_answer': False, 'word_count': 240, 'like_count': 4, 'reply_count': 1, 'participant_count': 2, 'posts': 5, 'tags': 'appearance', 'author': '@ahmad.mu (Ahmad Mu)', 'participants': '@ahmad.mu (Ahmad Mu), @mitchobrian (Michael Palmer), @system (system)', 'image_url': [None], 'created_at': '2021-04-24T05:39:21.590Z', 'last_posted_at': '2021-06-04T03:14:33.020Z'}