From b99609e9d242e5aaa2b0f14c08e8805b8903bc83 Mon Sep 17 00:00:00 2001 From: Wen-Chien Chen Date: Sun, 8 Jul 2018 00:18:31 -0700 Subject: [PATCH] Fix ScrollView logspew Summary: There was an inverted expression leading to logspew. Fix this. Reviewed By: TheSavior Differential Revision: D8758023 fbshipit-source-id: 7a83c68db6c95f2b5db6dcc7d7780fc66321b49e --- Libraries/Components/ScrollView/ScrollView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 7665527f5ad..27dd34f49f7 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -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.', ); }