about summary refs log tree commit diff
path: root/src/lib
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-09-15 11:00:06 -0500
committerEric Bailey <git@esb.lol>2023-09-15 11:00:06 -0500
commit0e8d564555d23bb2161fd8c96c3eef5bb7f04889 (patch)
tree84d1686d716b8508c4e384e497ed1b10909527e5 /src/lib
parent01870883d6062c43d275cad0d5d2012cf643df93 (diff)
downloadvoidsky-0e8d564555d23bb2161fd8c96c3eef5bb7f04889.tar.zst
link out to more context
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ThemeContext.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/ThemeContext.tsx b/src/lib/ThemeContext.tsx
index f77b55151..483c50c42 100644
--- a/src/lib/ThemeContext.tsx
+++ b/src/lib/ThemeContext.tsx
@@ -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] =