Skip to content

Instantly share code, notes, and snippets.

@sueLan
Created March 5, 2020 13:33
Show Gist options
  • Select an option

  • Save sueLan/40878e31625afced805c1bae0732fa77 to your computer and use it in GitHub Desktop.

Select an option

Save sueLan/40878e31625afced805c1bae0732fa77 to your computer and use it in GitHub Desktop.
/**
* Called when the viewability of rows changes, as defined by the
* `viewabilityConfig` prop.
*/
onViewableItemsChanged?: ?(info: {
viewableItems: Array<ViewToken>,
changed: Array<ViewToken>,
...
}) => void,
export type ViewToken = {
item: any,
// The key of this item
key: string,
index: ?number,
// indicated whether this item is viewable or not
isViewable: boolean,
section?: any,
...
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment