Skip to content

Commit 8cc05e2

Browse files
Nick Lefeverfacebook-github-bot
authored andcommitted
Add collapsableChildren prop to View
Summary: 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] Differential Revision: D86577393
1 parent 4175096 commit 8cc05e2

File tree

1 file changed

+4
-0
lines changed
  • packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view

1 file changed

+4
-0
lines changed

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)