Skip to content

New props infrastructure is not portable #34090

@asklar

Description

@asklar

Description

This commit: 47280de

Introduced a compile-time string hashing mechanism (perhaps inspired by this) to do switch statements on string values.

However the resulting code uses clang-specific pragmas, which won't work with other compilers (e.g. MSVC).
This breaks ingestion of RN core into React Native Windows.

image

Version

main

Output of npx react-native info

n/a

Steps to reproduce

n/a

Snack, code example, screenshot, or link to a repository

n/a

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions