Skip to content

Commit

Permalink
link out to more context
Browse files Browse the repository at this point in the history
  • Loading branch information
estrattonbailey committed Sep 15, 2023
1 parent 0187088 commit 0e8d564
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib/ThemeContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ function getTheme(theme: ColorSchemeName) {
return theme === 'dark' ? darkTheme : defaultTheme
}

/**
* With RN iOS, we can only "trust" the color scheme reported while the app is
* active. This is a workaround until the bug is fixed upstream.
*
* @see https://github.com/bluesky-social/social-app/pull/1417#issuecomment-1719868504
* @see https://github.com/facebook/react-native/pull/39439
*/
function useColorScheme_FIXED() {
const colorScheme = useColorScheme_BUGGY()
const [currentColorScheme, setCurrentColorScheme] =
Expand Down

0 comments on commit 0e8d564

Please sign in to comment.