Permalink
Browse files

Missed some viewablePercentThreshold references

Reviewed By: yungsters

Differential Revision: D4603767

fbshipit-source-id: b7674324e961ae43ca1ee74c309f4d98d954fbbc
  • Loading branch information...
sahrens authored and facebook-github-bot committed Feb 28, 2017
1 parent a10dbda commit f7d106041845d69de5711e7c49d9d4f0a6bd68ee
@@ -49,7 +49,7 @@ const {
const VIEWABILITY_CONFIG = {
minimumViewTime: 3000,
viewAreaCoveragePercentThreshold: 0,
viewAreaCoveragePercentThreshold: 100,
waitForInteraction: true,
};
@@ -48,6 +48,12 @@ const {
renderSmallSwitchOption,
} = require('./ListExampleShared');
const VIEWABILITY_CONFIG = {
minimumViewTime: 3000,
viewAreaCoveragePercentThreshold: 100,
waitForInteraction: true,
};
const SectionHeaderComponent = ({section}) => (
<View>
<Text style={styles.headerText}>SECTION HEADER: {section.key}</Text>
@@ -116,7 +122,7 @@ class SectionListExample extends React.PureComponent {
]},
{key: 'Filtered Items', data: filteredData},
]}
viewablePercentThreshold={100}
viewabilityConfig={VIEWABILITY_CONFIG}
/>
</UIExplorerPage>
);
@@ -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,
/**

0 comments on commit f7d1060

Please sign in to comment.