Skip to content

Commit

Permalink
Show warning if TTRC flag may clipped
Browse files Browse the repository at this point in the history
Summary: changelog: [internal]

Reviewed By: rubennorte

Differential Revision: D31016886

fbshipit-source-id: 26b5b97382936141ae7ef69fb1701d9822df5e8c
  • Loading branch information
sammy-SC authored and facebook-github-bot committed Sep 17, 2021
1 parent 2a0d8cc commit 6c66cef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,12 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, assign) UIEdgeInsets hitTestEdgeInsets;

/**
* Flag indicating if subview clipping is enabled for the view.
* If subview clipping is enabled, subviews that are outside of the viewport may be removed from the view hierachy.
*/
@property (nonatomic, readonly) BOOL removeClippedSubviews;

/**
* Enforcing `call super` semantic for overridden methods from `RCTComponentViewProtocol`.
* The methods update the instance variables.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ @implementation RCTViewComponentView {
NSSet<NSString *> *_Nullable _propKeysManagedByAnimated_DO_NOT_USE_THIS_IS_BROKEN;
}

@synthesize removeClippedSubviews = _removeClippedSubviews;

- (instancetype)initWithFrame:(CGRect)frame
{
if (self = [super initWithFrame:frame]) {
Expand Down

0 comments on commit 6c66cef

Please sign in to comment.