Skip to content

Commit

Permalink
Add collapsable to RCTViewManager as property
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sammy-SC authored and facebook-github-bot committed May 25, 2021
1 parent 4efd603 commit 925af8d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions React/Views/RCTViewManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,13 @@ - (RCTShadowView *)shadowView
}
}

RCT_CUSTOM_VIEW_PROPERTY(collapsable, BOOL, RCTView)
{
// Property is only to be used in the new renderer.
// It is necessary to add it here, otherwise it gets
// filtered by view configs.
}

#define RCT_VIEW_BORDER_PROPERTY(SIDE) \
RCT_CUSTOM_VIEW_PROPERTY(border##SIDE##Width, float, RCTView) \
{ \
Expand Down

0 comments on commit 925af8d

Please sign in to comment.