as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

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
}

Keys and values

index

Unique numeric identifier assigned to the data element.

Type Optional
number Yes

isViewable

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

Type Optional
boolean No

item

Item data

Type Optional
any No

key

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

Type Optional
string No

section

Item section data when used with SectionList.

Type Optional
any Yes

Used by


Last updated: Sep 30, 2025