From 9008cd916b39a3d85dc5e2af41b6df25899f947e Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Tue, 5 May 2026 13:17:44 +0100 Subject: [PATCH] [docs] Remove 'unspecified' from Appearance.getColorScheme --- docs/appearance.md | 5 ++--- docs/usecolorscheme.md | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/appearance.md b/docs/appearance.md index b69ca191d63..086615aec0f 100644 --- a/docs/appearance.md +++ b/docs/appearance.md @@ -83,16 +83,15 @@ flowchart TD ### `getColorScheme()` ```tsx -static getColorScheme(): 'light' | 'dark' | 'unspecified' | null; +static getColorScheme(): 'light' | 'dark' | null; ``` -Returns the active color scheme. The value may be updated later, either through direct user action (e.g. theme selection in device settings or application-level selected user interface style via `setColorScheme`) or on a schedule (e.g. light and dark themes that follow the day/night cycle). +Returns the active color scheme. This value may change at runtime, either at the system level (e.g. scheduled color scheme change at sunrise or sunset) or when overridden at the app level via `setColorScheme()`. Return values: - `'light'`: The light color scheme is applied. - `'dark'`: The dark color scheme is applied. -- `'unspecified'`: **_Never returned_** (incorrectly typed). - `null`: May be returned if the native Appearance module is not available. See also: [`useColorScheme`](usecolorscheme) (hook). diff --git a/docs/usecolorscheme.md b/docs/usecolorscheme.md index 6dc4d01517e..42f16f775d7 100644 --- a/docs/usecolorscheme.md +++ b/docs/usecolorscheme.md @@ -13,7 +13,6 @@ The `useColorScheme` React hook provides and subscribes to color scheme updates - `'light'`: The light color scheme is applied. - `'dark'`: The dark color scheme is applied. -- `'unspecified'`: **_Never returned_** (incorrectly typed). - `null`: May be returned if the native Appearance module is not available. ---