Skip to content

Changing onViewableItemsChanged on the fly is not supported #30171

Open
@zerocsss

Description

@zerocsss

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

Changing onViewableItemsChanged on the fly is not supported

React Native version:

0.63.3

Snack, code example, screenshot, or link to a repository:

<FlatList
ref={FlatListRef}
data={data}
inverted={true}
contentContainerStyle={{
flexGrow: 1, justifyContent: 'flex-end',
}}
renderItem={renderItem}
keyExtractor={item => item.id}
viewabilityConfig={{waitForInteraction: true, viewAreaCoveragePercentThreshold: 95}}
onViewableItemsChanged={(info) => {
console.log(info)
}}
/>

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugComponent: FlatListNever gets stalePrevent those issues and PRs from getting staleResolution: BacklogAn issue that should be solved at some point, but it's not in the immediate roadmap.Tech: React Native CoreIssue related to the Core of React Native

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions