Skip to content

Commit 4f49081

Browse files
Nick Lefevermeta-codesync[bot]
authored andcommitted
Add collapsableChildren prop to View (#54463)
Summary: Pull Request resolved: #54463 Even though the prop is not used on the Android view manager, adding prop diffing will reduce false error reports coming from the Props 2.0 runtime validator. Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D86577393 fbshipit-source-id: 748ca90a555eb1f98be551540ad2d54aba08cf25
1 parent a7dc9db commit 4f49081

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view

packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,10 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
647647
result["removeClippedSubviews"] = removeClippedSubviews;
648648
}
649649

650+
if (collapsableChildren != oldProps->collapsableChildren) {
651+
result["collapsableChildren"] = collapsableChildren;
652+
}
653+
650654
if (onLayout != oldProps->onLayout) {
651655
result["onLayout"] = onLayout;
652656
}

0 commit comments

Comments
 (0)