Skip to content

FlatList UIRefreshControl not working properly when redirect #53263

@ZaffranLe

Description

@ZaffranLe

Description

When navigating from a Stack.Screen to another Stack.Screen with FlatList inside, if we handle to load data on focus (which will change refresh property of FlatList to true), the Refresh control of FlatList will be freezed

Steps to reproduce

Reproduce using Snack.expo: https://snack.expo.dev/@zaffran/refreshflatlist

Inside Detail screen, we have 2 buttons: Go back using Pressable inside screen, and @react-navigation's Header.
If Go back, the refreshControl element will be stuck (black bar above list), otherwise works normally

React Native Version

0.80.2

Affected Platforms

Runtime - iOS

Areas

Fabric - The New Renderer

Output of npx @react-native-community/cli info

N/A

Stacktrace or Logs

A UIRefreshControl received offscreen beginRefreshing

MANDATORY Reproducer

https://snack.expo.dev/@zaffran/refreshflatlist

Screenshots and Videos

Image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions