Appearance does not change to dark mode

Please provide the following:

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

useColorScheme() always returns ‘light’ in device OnePlus 7T irrespective of the theme set [‘vibrant tints’, ‘illuminating light’, ‘nuanced dark’ ] in the device.

Observed the issue in the EXPO API project for Appearance too.

2 Likes

I noticed this issue also. I’m using Galaxy S8 with version 9 android SDK. It has night mode in settings. However, react-native-appearance doesn’t detect it.

Same issue on Essential Products PH-1 that’s running the latest version of Android 10 (build number: QQ1A.200105.007). No matter how much I toggle the “Dark theme” quick tile and regardless if I swipe away the app or relaunch Expo (npm run start), the value that’s returned by useColorScheme() is always ‘light’.

I created a quick Snack showing the problem: