Reviewed By: ericvicenti

Differential Revision: D4851513

fbshipit-source-id: 7ae9d3a8caef1364b3e300bf58db6232e90dc1cf
This commit is contained in:
Spencer Ahrens
2017-04-07 10:32:48 -07:00
committed by Facebook Github Bot
parent ceac54ebe9
commit 1fec1cc4d7
+3 -3
View File
@@ -742,9 +742,9 @@ class VirtualizedList extends React.PureComponent<OptionalProps, Props, State> {
}
};
_getFrameMetrics = (
index: number,
): ?{length: number, offset: number, index: number, inLayout?: boolean} => {
_getFrameMetrics = (index: number): ?{
length: number, offset: number, index: number, inLayout?: boolean,
} => {
const {data, getItem, getItemCount, getItemLayout, keyExtractor} = this.props;
invariant(getItemCount(data) > index, 'Tried to get frame for out of range index ' + index);
const item = getItem(data, index);