mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
d033c45f93
Summary:It was hard to understand which parts of the shadowview API are designed to be called only on the root view, and which were applicable to any view. This diff extracts rootview-specific logic out into a new RCTRootShadowView class. Reviewed By: majak Differential Revision: D3063905 fb-gh-sync-id: ef890cddfd7625fbd4bf5454314b441acdb03ac8 shipit-source-id: ef890cddfd7625fbd4bf5454314b441acdb03ac8
27 lines
786 B
Objective-C
27 lines
786 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import "RCTShadowView.h"
|
|
|
|
@interface RCTRootShadowView : RCTShadowView
|
|
|
|
/**
|
|
* Size flexibility type used to find size constraints.
|
|
* Default to RCTRootViewSizeFlexibilityNone
|
|
*/
|
|
@property (nonatomic, assign) RCTRootViewSizeFlexibility sizeFlexibility;
|
|
|
|
/**
|
|
* Calculate all views whose frame needs updating after layout has been calculated.
|
|
* Returns a set contains the shadowviews that need updating.
|
|
*/
|
|
- (NSSet<RCTShadowView *> *)collectViewsWithUpdatedFrames;
|
|
|
|
@end
|