mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 12:34:17 +00:00
7060141247
- [ReactNative] Move merge & mergeInto from downstream to vendor | Christopher Chedeau - [ReactNative] Replace all the call sites of mergeInto by Object.assign | Christopher Chedeau - [WIP] Migrated View Managers over to new architecture | Nick Lockwood - [ReactNative] Replace all the call sites of copyProperties by Object.assign | Christopher Chedeau - [ReactNative] Migrate navigator.geolocation to open source | Christopher Chedeau - [ReactNative] Remove README.md, LICENSE and .travis.yml from fbobjc | Christopher Chedeau - [react-packager] Better transform errors | Amjad Masad - [React Native][react-packager] Fix test runner and fialing tests | Amjad Masad
38 lines
1.4 KiB
Objective-C
38 lines
1.4 KiB
Objective-C
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#import <UIKit/UIScrollView.h>
|
|
|
|
#import "RCTAutoInsetsProtocol.h"
|
|
#import "RCTScrollableProtocol.h"
|
|
#import "RCTView.h"
|
|
|
|
@protocol UIScrollViewDelegate;
|
|
|
|
@class RCTEventDispatcher;
|
|
|
|
@interface RCTScrollView : RCTView <UIScrollViewDelegate, RCTScrollableProtocol, RCTAutoInsetsProtocol>
|
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
|
|
|
|
/**
|
|
* If the `contentSize` is not provided, then the `contentSize` will
|
|
* automatically be determined by the size of the `RKScrollView` subview.
|
|
*
|
|
* 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.
|
|
*/
|
|
@property (nonatomic, readonly) UIScrollView *scrollView;
|
|
@property (nonatomic, readonly) UIView *contentView;
|
|
|
|
@property (nonatomic, assign) CGSize contentSize;
|
|
@property (nonatomic, assign) UIEdgeInsets contentInset;
|
|
@property (nonatomic, assign) BOOL automaticallyAdjustContentInsets;
|
|
@property (nonatomic, assign) NSUInteger throttleScrollCallbackMS;
|
|
@property (nonatomic, assign) BOOL centerContent;
|
|
@property (nonatomic, copy) NSArray *stickyHeaderIndices;
|
|
|
|
@end
|