[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, scrollEnabled,
style, style,
/* eslint-disable */ /* eslint-disable */
alwaysBounceHorizontal,
alwaysBounceVertical,
automaticallyAdjustContentInsets,
bounces,
bouncesZoom,
canCancelContentTouches,
centerContent,
contentInset,
contentInsetAdjustmentBehavior,
contentOffset,
decelerationRate,
directionalLockEnabled,
endFillColor,
indicatorStyle,
keyboardShouldPersistTaps,
maximumZoomScale,
minimumZoomScale,
onMomentumScrollBegin, onMomentumScrollBegin,
onMomentumScrollEnd, onMomentumScrollEnd,
onScrollBeginDrag, onScrollBeginDrag,
onScrollEndDrag, onScrollEndDrag,
overScrollMode,
pinchGestureEnabled,
removeClippedSubviews, removeClippedSubviews,
scrollEventThrottle, scrollEventThrottle,
scrollIndicatorInsets,
scrollPerfTag,
scrollsToTop,
showsHorizontalScrollIndicator, showsHorizontalScrollIndicator,
showsVerticalScrollIndicator, showsVerticalScrollIndicator,
snapToInterval,
snapToAlignment,
zoomScale,
/* eslint-enable */ /* eslint-enable */
...other ...other
} = this.props; } = this.props;
+1
View File
@@ -137,6 +137,7 @@ const ScrollView = createReactClass({
keyboardDismissMode, keyboardDismissMode,
onScroll, onScroll,
pagingEnabled, pagingEnabled,
stickyHeaderIndices,
/* eslint-enable */ /* eslint-enable */
...other ...other
} = this.props; } = this.props;