Conforms to RCTViewNodeProtocol
Declared in UIView+React.h

Overview

Copyright © 2015-present, Facebook, Inc. All rights reserved.

This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. An additional grant of patent rights can be found in the PATENTS file in the same directory.

Tasks

Instance Methods

addControllerToClosestParent:

- (void)addControllerToClosestParent:(UIViewController *)controller
Discussion

This method attaches the specified controller as a child of the the owning view controller of this view. Returns NO if no view controller is found (which may happen if the view is not currently attached to the view hierarchy).

Declared In

UIView+React.h

backingViewController

- (UIViewController *)backingViewController
Discussion

This method finds and returns the containing view controller for the view.

Declared In

UIView+React.h

reactDidMakeFirstResponder

- (void)reactDidMakeFirstResponder

reactRespondsToTouch:

- (BOOL)reactRespondsToTouch:(UITouch *)touch

reactSetFrame:

- (void)reactSetFrame:(CGRect)frame
Discussion

Used by the UIIManager to set the view frame. May be overriden to disable animation, etc.

Declared In

UIView+React.h

reactSetInheritedBackgroundColor:

- (void)reactSetInheritedBackgroundColor:(UIColor *)inheritedBackgroundColor
Discussion

Used to improve performance when compositing views with translucent content.

Declared In

UIView+React.h

reactWillMakeFirstResponder

- (void)reactWillMakeFirstResponder
Discussion

Responder overrides - to be deprecated.

Declared In

UIView+React.h