Skip to content

ColorSchemeName types are incompatible #358

@deepanshushukla

Description

@deepanshushukla

It's a generic question in the repo I see ColorSchemeName type defined as
type ColorSchemeName = 'light' | 'dark' | 'unspecified';

https://github.com/facebook/react-native/blob/17cba6e1aff4e5839a6a2891fac0e4994073b8cd/packages/react-native/Libraries/Utilities/Appearance.d.ts#L12

Question is shouldn't this be 'null' instead of 'unspecified'.

Documentation: https://reactnative.dev/docs/appearance#setcolorscheme

I am trying on 0.83 New Arch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions