From f40de0e467815062c9bc61e645a835006b58c574 Mon Sep 17 00:00:00 2001 From: Spencer Ahrens Date: Thu, 5 Jul 2018 15:08:11 -0700 Subject: [PATCH] Fix some ScrollView lint Summary: $title Reviewed By: TheSavior Differential Revision: D8721334 fbshipit-source-id: 1aad238da9b8efdef6e2f3f1f2effd213fa9c3aa --- Libraries/Components/ScrollView/ScrollView.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index cec27cc67..6ad41c6b7 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -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); }