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';