UNPKG

770 Btext/x-cView Raw
1/*
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#import <React/RCTShadowView.h>
9#import <yoga/YGEnums.h>
10
11@interface RCTRootShadowView : RCTShadowView
12
13/**
14 * Available size to layout all views.
15 * Defaults to {INFINITY, INFINITY}
16 */
17@property (nonatomic, assign) CGSize availableSize;
18
19/**
20 * Layout direction (LTR or RTL) inherited from native environment and
21 * is using as a base direction value in layout engine.
22 * Defaults to value inferred from current locale.
23 */
24@property (nonatomic, assign) YGDirection baseDirection;
25
26- (void)layoutWithAffectedShadowViews:(NSHashTable<RCTShadowView *> *)affectedShadowViews;
27
28@end