From 90724b2cef4eb3cf50526084a5c339e59bb3693b Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Thu, 14 Sep 2017 11:20:18 -0700 Subject: [PATCH] [fix] filter unsupported ScrollView props Fix #633 --- src/components/ScrollView/ScrollViewBase.js | 25 +++++++++++++++++++++ src/components/ScrollView/index.js | 1 + 2 files changed, 26 insertions(+) diff --git a/src/components/ScrollView/ScrollViewBase.js b/src/components/ScrollView/ScrollViewBase.js index c381d166..dccec5e6 100644 --- a/src/components/ScrollView/ScrollViewBase.js +++ b/src/components/ScrollView/ScrollViewBase.js @@ -134,14 +134,39 @@ export default class ScrollViewBase extends Component { scrollEnabled, style, /* eslint-disable */ + alwaysBounceHorizontal, + alwaysBounceVertical, + automaticallyAdjustContentInsets, + bounces, + bouncesZoom, + canCancelContentTouches, + centerContent, + contentInset, + contentInsetAdjustmentBehavior, + contentOffset, + decelerationRate, + directionalLockEnabled, + endFillColor, + indicatorStyle, + keyboardShouldPersistTaps, + maximumZoomScale, + minimumZoomScale, onMomentumScrollBegin, onMomentumScrollEnd, onScrollBeginDrag, onScrollEndDrag, + overScrollMode, + pinchGestureEnabled, removeClippedSubviews, scrollEventThrottle, + scrollIndicatorInsets, + scrollPerfTag, + scrollsToTop, showsHorizontalScrollIndicator, showsVerticalScrollIndicator, + snapToInterval, + snapToAlignment, + zoomScale, /* eslint-enable */ ...other } = this.props; diff --git a/src/components/ScrollView/index.js b/src/components/ScrollView/index.js index 1349c768..5dfdd678 100644 --- a/src/components/ScrollView/index.js +++ b/src/components/ScrollView/index.js @@ -137,6 +137,7 @@ const ScrollView = createReactClass({ keyboardDismissMode, onScroll, pagingEnabled, + stickyHeaderIndices, /* eslint-enable */ ...other } = this.props;