Repository navigation
Open
Labels
Description
Description
I’m using useColorScheme to manage theming in my app.
The app has three theme options: System, Dark, and Light.
- When System is selected, I call Appearance.setColorScheme('unspecified').
- When Dark is selected, I call Appearance.setColorScheme('dark').
- When Light is selected, I call Appearance.setColorScheme('light').
If the system theme is dark and I call Appearance.setColorScheme('unspecified'), useColorScheme correctly returns dark.
However, if I update a state during the same button click, useColorScheme starts returning unspecified instead.
Steps to reproduce
- Change color schemes by clicking buttons
- It should work
- Enable state change by clicking enable state change button
- Change color schemes by clicking buttons
- It returns unspecified when you change from system color (dark or light) to system
React Native Version
0.83.1
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
System:
OS: macOS 26.2
CPU: (8) arm64 Apple M1 Pro
Memory: 108.17 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.19.0
path: /Users/aykutsaki/.nvm/versions/node/v22.19.0/bin/node
Yarn:
version: 1.22.15
path: /opt/homebrew/bin/yarn
npm:
version: 10.9.3
path: /Users/aykutsaki/.nvm/versions/node/v22.19.0/bin/npm
Watchman:
version: 2025.05.26.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.2
- iOS 26.2
- macOS 26.2
- tvOS 26.2
- visionOS 26.2
- watchOS 26.2
Android SDK:
API Levels:
- "31"
- "35"
- "36"
Build Tools:
- 35.0.0
- 36.0.0
System Images:
- android-35 | Google Play ARM 64 v8a
- android-36 | Google Play ARM 64 v8a
Android NDK: Not Found
IDEs:
Android Studio: 2025.2 AI-252.25557.131.2521.14344949
Xcode:
version: 26.2/17C52
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.9
path: /Users/aykutsaki/.jenv/shims/javac
Ruby:
version: 3.2.2
path: /Users/aykutsaki/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: 20.0.0
react:
installed: 19.2.0
wanted: 19.2.0
react-native:
installed: 0.83.1
wanted: 0.83.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Stacktrace or Logs
No crash
MANDATORY Reproducer
https://github.com/AuroPick/color-scheme-unspecified
Screenshots and Videos
Simulator.Screen.Recording.-.iPhone.17.-.2025-12-21.at.18.36.27.mov
Reacted by Evan Simpson, astrahov, marcel-happyfloat, Kyle and Gennady
Activity
AuroPick commentedon Dec 21, 2025
This works fine in 0.81.5, but breaks in 0.82.0 with the introduction of the new
unspecifiedvalue.ismarbesic commentedon Jan 8, 2026
@cipolleschi is there a chance we can have a look at this issue and the 1-liner PR above that solves it? There was a regression last year around RN 0.73/0.74 with a similar issue to this one. Would be awesome if we can have this fixed in 0.84 :)
ismarbesic commentedon Feb 5, 2026
Hi again @cipolleschi @cortinico. Bumping this issue. It's been a regression since 0.82 and as 0.84 is approaching it would be awesome if we could have this fix merged into main :) and hopefully be part of 0.84 as well.
fix: color scheme in appearance state after setting it to unspecified (…
fix: color scheme in appearance state after setting it to unspecified (…
react-native-bot commentedon Aug 4, 2026
This issue is stale because it has been open for 180 days with no activity. It will be closed in 7 days unless you comment on it or remove the "Stale" label.