mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Missed some viewablePercentThreshold references
Reviewed By: yungsters Differential Revision: D4603767 fbshipit-source-id: b7674324e961ae43ca1ee74c309f4d98d954fbbc
This commit is contained in:
committed by
Facebook Github Bot
parent
a10dbdaaf6
commit
f7d1060418
@@ -105,7 +105,7 @@ type OptionalProps<SectionT: SectionBase<*>> = {
|
||||
onRefresh?: ?Function,
|
||||
/**
|
||||
* Called when the viewability of rows changes, as defined by the
|
||||
* `viewablePercentThreshold` prop.
|
||||
* `viewabilityConfig` prop.
|
||||
*/
|
||||
onViewableItemsChanged?: ?({viewableItems: Array<ViewToken>, changed: Array<ViewToken>}) => void,
|
||||
/**
|
||||
|
||||
@@ -103,7 +103,7 @@ type OptionalProps = {
|
||||
onRefresh?: ?Function,
|
||||
/**
|
||||
* Called when the viewability of rows changes, as defined by the
|
||||
* `viewablePercentThreshold` prop.
|
||||
* `viewabilityConfig` prop.
|
||||
*/
|
||||
onViewableItemsChanged?: ?({viewableItems: Array<ViewToken>, changed: Array<ViewToken>}) => void,
|
||||
/**
|
||||
@@ -225,7 +225,6 @@ class VirtualizedList extends React.PureComponent<OptionalProps, Props, *> {
|
||||
nextProps: {item: Item, index: number},
|
||||
) => true,
|
||||
updateCellsBatchingPeriod: 50,
|
||||
viewablePercentThreshold: 10,
|
||||
windowSize: 21, // multiples of length
|
||||
};
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ type OptionalProps<SectionT: SectionBase> = {
|
||||
onRefresh?: ?Function,
|
||||
/**
|
||||
* Called when the viewability of rows changes, as defined by the
|
||||
* `viewablePercentThreshold` prop.
|
||||
* `viewabilityConfig` prop.
|
||||
*/
|
||||
onViewableItemsChanged?: ?({viewableItems: Array<ViewToken>, changed: Array<ViewToken>}) => void,
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user