Inherits from NSObject
Conforms to RCTBridgeModule
RCTInvalidating
Declared in RCTUIManager.h

Overview

The RCTUIManager is the module responsible for updating the view hierarchy.

Tasks

  •   mainScrollView property
  •   nativeMainScrollDelegate

    Allows native environment code to respond to “the main scroll view” events. see RCTUIManager’s setMainScrollViewTag.

    property
  • – registerRootView:

    Register a root view with the RCTUIManager.

  • – viewForReactTag:

    Gets the view associated with a reactTag.

  • – setFrame:forRootView:

    Update the frame of a root view. This might be in response to a screen rotation or some other layout event outside of the React-managed view hierarchy.

  • – setBackgroundColor:forRootView:

    Update the background color of a root view. This is usually triggered by manually setting the background color of the root view with native code.

  • – addUIBlock:

    Schedule a block to be executed on the UI thread. Useful if you need to execute view logic after all currently queued view updates have completed.

  • + JSResponder

    The view that is currently first responder, according to the JS context.

Properties

mainScrollView

@property (nonatomic, weak) id<RCTScrollableProtocol> mainScrollView

nativeMainScrollDelegate

@property (nonatomic, readwrite, weak) id<UIScrollViewDelegate> nativeMainScrollDelegate
Discussion

Allows native environment code to respond to “the main scroll view” events. see RCTUIManager’s setMainScrollViewTag.

Declared In

RCTUIManager.h

Class Methods

JSResponder

+ (UIView *)JSResponder
Discussion

The view that is currently first responder, according to the JS context.

Declared In

RCTUIManager.h

Instance Methods

addUIBlock:

- (void)addUIBlock:(RCTViewManagerUIBlock)block
Discussion

Schedule a block to be executed on the UI thread. Useful if you need to execute view logic after all currently queued view updates have completed.

Declared In

RCTUIManager.h

registerRootView:

- (void)registerRootView:(UIView *)rootView
Discussion

Register a root view with the RCTUIManager.

Declared In

RCTUIManager.h

setBackgroundColor:forRootView:

- (void)setBackgroundColor:(UIColor *)color forRootView:(UIView *)rootView
Discussion

Update the background color of a root view. This is usually triggered by manually setting the background color of the root view with native code.

Declared In

RCTUIManager.h

setFrame:forRootView:

- (void)setFrame:(CGRect)frame forRootView:(UIView *)rootView
Discussion

Update the frame of a root view. This might be in response to a screen rotation or some other layout event outside of the React-managed view hierarchy.

Declared In

RCTUIManager.h

viewForReactTag:

- (UIView *)viewForReactTag:(NSNumber *)reactTag
Discussion

Gets the view associated with a reactTag.

Declared In

RCTUIManager.h