[fix] filter unsupported ScrollView props

Fix #633
This commit is contained in:
Nicolas Gallagher
2017-09-14 11:20:18 -07:00
parent dd0f1de3d1
commit 90724b2cef
2 changed files with 26 additions and 0 deletions
@@ -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;
+1
View File
@@ -137,6 +137,7 @@ const ScrollView = createReactClass({
keyboardDismissMode,
onScroll,
pagingEnabled,
stickyHeaderIndices,
/* eslint-enable */
...other
} = this.props;