react-native/ReactKit/Modules/RCTUIManager.h

31 lines
816 B
C
Raw Normal View History

2015-01-29 17:10:49 -08:00
// Copyright 2004-present Facebook. All Rights Reserved.
#import <UIKit/UIKit.h>
#import "RCTBridgeModule.h"
2015-01-29 17:10:49 -08:00
#import "RCTInvalidating.h"
@class RCTRootView;
@class RCTShadowView;
@class RCTSparseArray;
@protocol RCTScrollableProtocol;
2015-01-29 17:10:49 -08:00
@interface RCTUIManager : NSObject <RCTBridgeModule, RCTInvalidating>
2015-01-29 17:10:49 -08:00
@property (nonatomic, strong) RCTSparseArray *shadowViewRegistry;
@property (nonatomic, strong) RCTSparseArray *viewRegistry;
@property (nonatomic, weak) id<RCTScrollableProtocol> mainScrollView;
/**
* Allows native environment code to respond to "the main scroll view" events.
* see `RCTUIManager`'s `setMainScrollViewTag`.
*/
@property (nonatomic, readwrite, weak) id<UIScrollViewDelegate> nativeMainScrollDelegate;
- (void)registerRootView:(RCTRootView *)rootView;
+ (UIView *)JSResponder;
@end