RN: Fix References to ReactComponent / ReactElement

Reviewed By: sebmarkbage

Differential Revision: D4023832

fbshipit-source-id: 6074efe614380119da4f8aa93b47593eeb981fbd
This commit is contained in:
Tim Yung 2016-10-14 18:50:10 -07:00 committed by Facebook Github Bot
parent 9df93c1071
commit 421e7880d9
1 changed files with 2 additions and 4 deletions

View File

@ -48,8 +48,6 @@ const infoLog = require('infoLog');
const invariant = require('fbjs/lib/invariant');
const nullthrows = require('fbjs/lib/nullthrows');
import type ReactComponent from 'ReactComponent';
const DEBUG = false;
/**
@ -187,7 +185,7 @@ class WindowedListView extends React.Component {
_willComputeRowsToRender: boolean = false;
_viewableRows: Array<number> = [];
_cellsInProgress: Set<string> = new Set();
_scrollRef: ?Object;
_scrollRef: ?ScrollView;
static defaultProps = {
initialNumToRender: 10,
@ -214,7 +212,7 @@ class WindowedListView extends React.Component {
lastRow: Math.min(this.props.data.length, this.props.initialNumToRender) - 1,
};
}
getScrollResponder(): ?ReactComponent {
getScrollResponder(): ?ScrollView {
return this._scrollRef &&
this._scrollRef.getScrollResponder &&
this._scrollRef.getScrollResponder();