Skip to content

Dynamic colors cause a Main Thread Checker violation #335

@tom-un

Description

@tom-un

The Dynamic color feature, which is to specify a color via { dynamic: { light: '', dark: '' } } is causing a Main Thread checker violation at runtime.

Steps To Reproduce

  1. Debug RNTester in Xcode
  2. In the console a Main Thread check failure will appear in RCTDynamicColor.m when calling [NSApp effectiveAppearance]

Its harmless (now) but needs to be refactored in a way that [NSApp effectiveAppearance] doesn't get called on a background thread.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions