Fix some ScrollView lint

Summary: $title

Reviewed By: TheSavior

Differential Revision: D8721334

fbshipit-source-id: 1aad238da9b8efdef6e2f3f1f2effd213fa9c3aa
This commit is contained in:
Spencer Ahrens 2018-07-05 15:08:11 -07:00 committed by Facebook Github Bot
parent 2424ef5654
commit f40de0e467

View File

@ -875,7 +875,7 @@ const ScrollView = createReactClass({
ScrollViewClass = RCTScrollView;
ScrollContentContainerViewClass = RCTScrollContentView;
warning(
!this.props.snapToInterval || !this.props.pagingEnabled,
this.props.snapToInterval != null || !this.props.pagingEnabled,
'snapToInterval is currently ignored when pagingEnabled is true.',
);
}
@ -1028,7 +1028,7 @@ const ScrollView = createReactClass({
};
const {decelerationRate} = this.props;
if (decelerationRate) {
if (decelerationRate != null) {
props.decelerationRate = processDecelerationRate(decelerationRate);
}