Expo

Get Started
API Reference

ViewToken Object Type

ViewToken object is returned as one of properties in the onViewableItemsChanged callback, for example in FlatList component. It is exported by ViewabilityHelper.js.

Example

{
  item: { key: "key-12" },
  key: "key-12",
  index: 11,
  isViewable: true
}

Unique numeric identifier assigned to the data element.
TypeOptional
numberYes

Specifies if at least some part of list element is visible in the viewport.
TypeOptional
booleanNo

Item data
TypeOptional
anyNo

Key identifier assigned of the data element extracted to the top level.
TypeOptional
stringNo

Item section data when used with SectionList.
TypeOptional
anyYes

  • FlatList
  • SectionList
  • VirtualizedList