2
0
mirror of https://github.com/status-im/react-native.git synced 2025-01-18 05:23:26 +00:00

27 lines
707 B
C
Raw Normal View History

2015-01-29 17:10:49 -08:00
// Copyright 2004-present Facebook. All Rights Reserved.
/**
* Logical node in a tree of application components. Both `ShadowView`s and
* `UIView+ReactKit`s conform to this. Allows us to write utilities that
* reason about trees generally.
*/
@protocol RCTViewNodeProtocol <NSObject>
@property (nonatomic, strong) NSNumber *reactTag;
- (void)insertReactSubview:(id<RCTViewNodeProtocol>)subview atIndex:(NSInteger)atIndex;
- (void)removeReactSubview:(id<RCTViewNodeProtocol>)subview;
- (NSMutableArray *)reactSubviews;
- (NSNumber *)reactTagAtPoint:(CGPoint)point;
2015-01-29 17:10:49 -08:00
// View is an RCTRootView
- (BOOL)isReactRootView;
@optional
// TODO: Deprecate this
- (void)reactBridgeDidFinishTransaction;
@end