Skip to content

Commit 925af8d

Browse files
sammy-SCfacebook-github-bot
authored andcommittedMay 25, 2021
Add collapsable to RCTViewManager as property
Summary: Changelog: [internal] collapsable was not passed to Fabric because view configs are built using Paper' ViewManagers. Reviewed By: p-sun Differential Revision: D27944688 fbshipit-source-id: 73a5646e25b3dd7a1a9dfc1079406047ab483d88
1 parent 4efd603 commit 925af8d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎React/Views/RCTViewManager.m

+7
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,13 @@ - (RCTShadowView *)shadowView
301301
}
302302
}
303303

304+
RCT_CUSTOM_VIEW_PROPERTY(collapsable, BOOL, RCTView)
305+
{
306+
// Property is only to be used in the new renderer.
307+
// It is necessary to add it here, otherwise it gets
308+
// filtered by view configs.
309+
}
310+
304311
#define RCT_VIEW_BORDER_PROPERTY(SIDE) \
305312
RCT_CUSTOM_VIEW_PROPERTY(border##SIDE##Width, float, RCTView) \
306313
{ \

0 commit comments

Comments
 (0)
Please sign in to comment.