Skip to content

iOS menu is displayInlined with 0.74 and new architecture when not set #784

@alanleedev

Description

@alanleedev

NOTE: This issue requires fix in React Native codegen but filing here for folks who may run into the issue in the meanwhile.
This issue is expected to be fixed in react-native PR: facebook/react-native#44294

Problem:
So Props.h file generated from native component codegen does not properly initialize C++ struct.
So in effect, if you run the example code on iOS, displayInline which is an optional prop in MenuView unintentionally can be set to true as it is not initialized properly in C++ and sub menus can appear at top level.
Also using WithDefault in the TypeScript spec file does not fix this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions