// Copyright 2004-present Facebook. All Rights Reserved. #import #import "RCTExport.h" #import "RCTInvalidating.h" @class RCTBridge; @class RCTRootView; @class RCTShadowView; @protocol RCTScrollableProtocol; @protocol RCTViewNodeProtocol; @interface RCTUIManager : NSObject - (instancetype)initWithBridge:(RCTBridge *)bridge; @property (nonatomic, strong) RCTSparseArray *shadowViewRegistry; @property (nonatomic, strong) RCTSparseArray *viewRegistry; @property (nonatomic, weak) id mainScrollView; /** * Allows native environment code to respond to "the main scroll view" events. * see `RCTUIManager`'s `setMainScrollViewTag`. */ @property (nonatomic, readwrite, weak) id nativeMainScrollDelegate; + (UIView *)closestReactAncestor:(UIView *)view; + (UIView *)closestReactAncestorThatRespondsToTouch:(UITouch *)touch; - (void)registerRootView:(RCTRootView *)rootView; + (UIView *)JSResponder; @end