docs/viewtoken.md
ViewToken object is returned as one of the properties in the onViewableItemsChanged callback (for example, in the FlatList component). It is exported by ViewabilityHelper.js.
{
item: {key: "key-12"},
key: "key-12",
index: 11,
isViewable: true
}
indexUnique numeric identifier assigned to the data element.
| Type | Optional |
|---|---|
| number | Yes |
isViewableSpecifies if at least some part of list element is visible in the viewport.
| Type | Optional |
|---|---|
| boolean | No |
itemItem data
| Type | Optional |
|---|---|
| any | No |
keyKey identifier assigned to the data element extracted to the top level.
| Type | Optional |
|---|---|
| string | No |
sectionItem section data when used with SectionList.
| Type | Optional |
|---|---|
| any | Yes |