skip to Main Content

I’ve tried Appearance.set({ colorScheme: 'light' }); and "userInterfaceStyle": "light" but my app still forces white colors to black.

2

Answers


  1. Think you need to look at your configuration. Per the docs in your app.json you should use:

    {
      "expo": {
        "userInterfaceStyle": "light"
      }
    }
    

    and to validate there isn’t an issue it raises that you should install expo-system-ui

    and to validate wether there is an issue run the command:

    npx expo config --type introspect
    
    Login or Signup to reply.
  2. There is some android devices forces applications to dark mode even you change through your app.json.It may disrupt application UI.

    I recommend using expo-config-plugins to disable forceDarkAllowed value.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search