mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
6153fffb30
- Add back providesModule transform to JSAppServer | Joseph Savona - [ReactKit] fix open source performance issue | John Harper - [ReactKit] improve ReactIOSEventEmitter logics | Andrew Rasmussen - [reactkit] fix web view JS executor and bind it to Command-d | John Harper - Removed hardcoded RCTModuleIDs | Nick Lockwood - [ReactKit] Animated GIF support | Alex Akers - [ReactKit] Update RCTBridge to support non-`id` argument types | Alex Akers - [reactkit] fix typo in RCTCopyProperty() change | John Harper - [reactkit] fix shadow view crash on missing properties | John Harper - [reactkit] fix transform keypath | John Harper
56 lines
1.7 KiB
Objective-C
56 lines
1.7 KiB
Objective-C
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#import "RCTScrollViewManager.h"
|
|
|
|
#import "RCTConvert.h"
|
|
#import "RCTScrollView.h"
|
|
|
|
@implementation RCTScrollViewManager
|
|
|
|
- (UIView *)view
|
|
{
|
|
return [[RCTScrollView alloc] initWithEventDispatcher:self.eventDispatcher];
|
|
}
|
|
|
|
RCT_EXPORT_VIEW_PROPERTY(alwaysBounceHorizontal)
|
|
RCT_EXPORT_VIEW_PROPERTY(alwaysBounceVertical)
|
|
RCT_EXPORT_VIEW_PROPERTY(bounces)
|
|
RCT_EXPORT_VIEW_PROPERTY(bouncesZoom)
|
|
RCT_EXPORT_VIEW_PROPERTY(canCancelContentTouches)
|
|
RCT_EXPORT_VIEW_PROPERTY(centerContent)
|
|
RCT_EXPORT_VIEW_PROPERTY(automaticallyAdjustContentInsets)
|
|
RCT_EXPORT_VIEW_PROPERTY(decelerationRate)
|
|
RCT_EXPORT_VIEW_PROPERTY(directionalLockEnabled)
|
|
RCT_EXPORT_VIEW_PROPERTY(keyboardDismissMode)
|
|
RCT_EXPORT_VIEW_PROPERTY(maximumZoomScale)
|
|
RCT_EXPORT_VIEW_PROPERTY(minimumZoomScale)
|
|
RCT_EXPORT_VIEW_PROPERTY(pagingEnabled)
|
|
RCT_EXPORT_VIEW_PROPERTY(scrollEnabled)
|
|
RCT_EXPORT_VIEW_PROPERTY(scrollsToTop)
|
|
RCT_EXPORT_VIEW_PROPERTY(showsHorizontalScrollIndicator)
|
|
RCT_EXPORT_VIEW_PROPERTY(showsVerticalScrollIndicator)
|
|
RCT_EXPORT_VIEW_PROPERTY(stickyHeaderIndices);
|
|
RCT_EXPORT_VIEW_PROPERTY(throttleScrollCallbackMS);
|
|
RCT_EXPORT_VIEW_PROPERTY(zoomScale);
|
|
RCT_EXPORT_VIEW_PROPERTY(contentInset);
|
|
RCT_EXPORT_VIEW_PROPERTY(scrollIndicatorInsets);
|
|
RCT_EXPORT_VIEW_PROPERTY(contentOffset);
|
|
|
|
+ (NSDictionary *)constantsToExport
|
|
{
|
|
return
|
|
@{
|
|
@"DecelerationRate": @{
|
|
@"Normal": @(UIScrollViewDecelerationRateNormal),
|
|
@"Fast": @(UIScrollViewDecelerationRateFast),
|
|
},
|
|
@"KeyboardDismissMode": @{
|
|
@"None": @(UIScrollViewKeyboardDismissModeNone),
|
|
@"Interactive": @(UIScrollViewKeyboardDismissModeInteractive),
|
|
@"OnDrag": @(UIScrollViewKeyboardDismissModeOnDrag),
|
|
},
|
|
};
|
|
}
|
|
|
|
@end
|