
Invariant Violation: scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures., js engine: hermes
<FlatList
ref={listRef}
onViewableItemsChanged={onViewableItemsChanged}
viewabilityConfig={{itemVisiblePercentThreshold: 75}}
data={data}
renderItem={renderItem}
pagingEnabled={true}
showsHorizontalScrollIndicator={false}
onScrollToIndexFailed={onScrollToIndexFailed}
/>