Skip to content

Commit

Permalink
Fix some ScrollView lint
Browse files Browse the repository at this point in the history
Summary: $title

Reviewed By: TheSavior

Differential Revision: D8721334

fbshipit-source-id: 1aad238da9b8efdef6e2f3f1f2effd213fa9c3aa
  • Loading branch information
sahrens authored and facebook-github-bot committed Jul 5, 2018
1 parent 2424ef5 commit f40de0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/Components/ScrollView/ScrollView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
);
}
Expand Down Expand Up @@ -1028,7 +1028,7 @@ const ScrollView = createReactClass({
};

const {decelerationRate} = this.props;
if (decelerationRate) {
if (decelerationRate != null) {
props.decelerationRate = processDecelerationRate(decelerationRate);
}

Expand Down

0 comments on commit f40de0e

Please sign in to comment.