Fix ScrollView logspew

Summary: There was an inverted expression leading to logspew. Fix this.

Reviewed By: TheSavior

Differential Revision: D8758023

fbshipit-source-id: 7a83c68db6c95f2b5db6dcc7d7780fc66321b49e
This commit is contained in:
Wen-Chien Chen 2018-07-08 00:18:31 -07:00 committed by Facebook Github Bot
parent 604bcfa4a8
commit b99609e9d2
1 changed files with 1 additions and 1 deletions

View File

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