Skip to content

[0.83] Fix color scheme in appearance state after setting it to unspecified #1213

@oleksandr-dziuban

Description

@oleksandr-dziuban

Target Branch

0.83

Link to commit or PR to be picked

facebook/react-native#54993

Description

Fixed the value of the color scheme in the appearance state after setting it to unspecified when state updates. The issue is described here facebook/react-native#54959. This is a regression from facebook/react-native#53397 and should be reproducible from 0.82 and higher. The useColorScheme() hook will return "unspecified" when you change the appearance from system color (dark or light) to system which breaks many apps using the value to determine whether to use dark/light mode colors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    Status

    Done / Picked

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions