Skip to content

[0.83] fix(ios): Make removeClippedSubviews toggle-resilient #1313

@cipolleschi

Description

@cipolleschi

Target Branch

0.83

Link to commit or PR to be picked

facebook/react-native#57023

Description

The removeClippedSubviews prop toggle path in RCTViewComponentView did not handle being turned off: children that were clipped (removed from superview) remained invisible, and _reactSubviews became stale, causing crashes.

Cherry-pick of facebook/react-native#56211 (D97971845).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Inbox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions