forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Appearance module to observe application appearance (facebook#1340)
This fixes the `Appearance.getColorScheme()` API to return the application-level appearance instead of the last appearance of any root view, which breaks down in multi-window applications. In Messenger Desktop we always respect the OS appearance for main and setting windows, but force a darkTheme in the calling UI. W/o this change returning from the calling UI would result in a wrong appearance setting on light theme OS setting Co-authored-by: Scott Kyle <skyle@fb.com>
- Loading branch information
1 parent
24acd40
commit c3e847a
Showing
2 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters