Inherits from RCTView : UIView
Conforms to RCTAutoInsetsProtocol
RCTScrollableProtocol
UIScrollViewDelegate
Declared in RCTScrollView.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

Properties

automaticallyAdjustContentInsets

@property (nonatomic, assign) BOOL automaticallyAdjustContentInsets

centerContent

@property (nonatomic, assign) BOOL centerContent

contentInset

@property (nonatomic, assign) UIEdgeInsets contentInset

contentSize

@property (nonatomic, assign) CGSize contentSize
Discussion

If the contentSize is not specified (or is specified as {0, 0}, then the contentSize will automatically be determined by the size of the subview.

Declared In

RCTScrollView.h

contentView

@property (nonatomic, readonly) UIView *contentView
Discussion

The RCTScrollView may have at most one single subview. This will ensure that the scroll view’s contentSize will be efficiently set to the size of the single subview’s frame. That frame size will be determined somewhat efficiently since it will have already been computed by the off-main-thread layout system.

Declared In

RCTScrollView.h

scrollEventThrottle

@property (nonatomic, assign) NSTimeInterval scrollEventThrottle

scrollView

@property (nonatomic, readonly) UIScrollView *scrollView
Discussion

The underlying scrollView (TODO: can we remove this?)

Declared In

RCTScrollView.h

stickyHeaderIndices

@property (nonatomic, copy) NSIndexSet *stickyHeaderIndices

Instance Methods

initWithEventDispatcher:

- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher