mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
fix it
Reviewed By: ericvicenti Differential Revision: D4851513 fbshipit-source-id: 7ae9d3a8caef1364b3e300bf58db6232e90dc1cf
This commit is contained in:
committed by
Facebook Github Bot
parent
ceac54ebe9
commit
1fec1cc4d7
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user