From 155a609781870db8293f37799efeee442f5f3152 Mon Sep 17 00:00:00 2001 From: Martin Konicek Date: Fri, 20 Nov 2015 09:51:58 -0800 Subject: [PATCH] Unbreak tests Summary: The recent commits for RecyclerViewBackedScrollView introduced a bunch of Flow errors. Disable Flow for now in `ReactNativeViewPool` as it looks like that file doesn't use Flow :) public Reviewed By: gabelevi Differential Revision: D2679974 fb-gh-sync-id: 71512f403e3fa271f6c0fa1a64e877ca1750f675 --- Libraries/Components/ScrollView/ScrollView.js | 6 +++--- Libraries/ReactNative/ReactNativeViewPool.js | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Libraries/Components/ScrollView/ScrollView.js b/Libraries/Components/ScrollView/ScrollView.js index 4d90f19d6..a23ac8c5d 100644 --- a/Libraries/Components/ScrollView/ScrollView.js +++ b/Libraries/Components/ScrollView/ScrollView.js @@ -346,7 +346,7 @@ var ScrollView = React.createClass({ ); }, - handleScroll: function(e: Event) { + handleScroll: function(e: Object) { if (__DEV__) { if (this.props.onScroll && !this.props.scrollEventThrottle) { console.log( @@ -366,8 +366,8 @@ var ScrollView = React.createClass({ this.scrollResponderHandleScroll(e); }, - _handleContentOnLayout: function(event) { - var {width, height} = event.nativeEvent.layout; + _handleContentOnLayout: function(e: Object) { + var {width, height} = e.nativeEvent.layout; this.props.onContentSizeChange && this.props.onContentSizeChange(width, height); }, diff --git a/Libraries/ReactNative/ReactNativeViewPool.js b/Libraries/ReactNative/ReactNativeViewPool.js index 968449d8b..dd0a59616 100644 --- a/Libraries/ReactNative/ReactNativeViewPool.js +++ b/Libraries/ReactNative/ReactNativeViewPool.js @@ -7,7 +7,6 @@ * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactNativeViewPool - * @flow */ 'use strict';