From 0e8d564555d23bb2161fd8c96c3eef5bb7f04889 Mon Sep 17 00:00:00 2001
From: Eric Bailey <git@esb.lol>
Date: Fri, 15 Sep 2023 11:00:06 -0500
Subject: link out to more context

---
 src/lib/ThemeContext.tsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'src/lib/ThemeContext.tsx')

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] =
-- 
cgit 1.4.1

