Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/appearance.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
1 change: 0 additions & 1 deletion docs/usecolorscheme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

---
Expand Down