Skip to content

When unfreezing the FlatList returns the scroll to the top #31

Description

@yepMad

Hello,

My current component is structured as follows, take into account that isFocused comes from the React Navigation hook:

<Freeze freeze={!isFocused}>
      <FlatList
        data={data}
        removeClippedSubviews
        renderItem={renderItem}
        keyExtractor={keyExtractor}
        getItemLayout={getItemLayout}
        ItemSeparatorComponent={Divider}
      />
</Freeze>

When the user returns to this screen after being frozen, the FlatList scroll is at the top, is this the expected behavior? From the README I understood that it shouldn't happen. Here is a video to illustrate the problem. For tabs I'm using @react-navigation/material-top-tabs.

screencap-2022-12-08T023104.731Z.mp4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions