mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 12:34:17 +00:00
caf21ae50d
- [ReactNative] Fix OSS Projects | Spencer Ahrens <sahrens@fb.com> - [react-packager] check-in node_modules and update tests | Amjad Masad <amasad@fb.com> - [react-packager] Cleanup package.json | Amjad Masad <amasad@fb.com> - [react-packager] Implement bundle minification | Amjad Masad <amasad@fb.com> - [react-packager] Add dev option to CLI | James Ide | Amjad Masad <amasad@fb.com> - [react-packager] Add uglify-js library | Amjad Masad <amasad@fb.com> - [f8] Make map zoomable on double-tap | Alex Kotliarskyi <frantic@fb.com>
31 lines
1.1 KiB
JavaScript
31 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright 2004-present Facebook. All Rights Reserved.
|
|
*
|
|
* @providesModule ScrollViewPropTypes
|
|
*/
|
|
'use strict';
|
|
|
|
var EdgeInsetsPropType = require('EdgeInsetsPropType');
|
|
var PointPropType = require('PointPropType');
|
|
var PropTypes = require('ReactPropTypes');
|
|
var StyleSheetPropType = require('StyleSheetPropType');
|
|
var ViewStylePropTypes = require('ViewStylePropTypes');
|
|
|
|
var nativePropType = require('nativePropType');
|
|
|
|
var ScrollViewPropTypes = {
|
|
automaticallyAdjustContentInsets: nativePropType(PropTypes.bool), // true
|
|
contentInset: nativePropType(EdgeInsetsPropType), // zeroes
|
|
contentOffset: nativePropType(PointPropType), // zeroes
|
|
onScroll: PropTypes.func,
|
|
onScrollAnimationEnd: PropTypes.func,
|
|
scrollEnabled: nativePropType(PropTypes.bool), // true
|
|
scrollIndicatorInsets: nativePropType(EdgeInsetsPropType), // zeros
|
|
showsHorizontalScrollIndicator: nativePropType(PropTypes.bool),
|
|
showsVerticalScrollIndicator: nativePropType(PropTypes.bool),
|
|
style: StyleSheetPropType(ViewStylePropTypes),
|
|
throttleScrollCallbackMS: nativePropType(PropTypes.number), // null
|
|
};
|
|
|
|
module.exports = ScrollViewPropTypes;
|