Skip to content

[Android][New Arch][Dev Mode] App crashes with error in RN core, if a property name is long (but less than kPropNameLengthHardCap) #39019

Description

@birdofpreyru

Description

Hi folks 👋 Can you have a quick look at this issue I've opened in react-native-webview repo (especially my second message there)? I was troubleshooting it crashing my app if I enable the new arch and run it in dev (and only in dev mode — no crash in the release one); and I seemingly traced it down to an assertion tripped inside RN core's RawPropsKeyMap.cpp, if I use a property which name is 38 symbols long... and I have no issue if I just shorten the property name down to 10 symbols... and from a brief look at the RN code, it seems the current prop name limit is supposed to be 64 symbols. Soo... my current impression, it is either I found a bug in RN core, or RN does not gracefully report a component violating some internal limit.

React Native Version

0.72.4

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

    Labels

    Needs: AttentionIssues where the author has responded to feedback.Needs: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Needs: Version InfoPlatform: AndroidAndroid applications.Type: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)

    Type

    No type

    Fields

    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