Skip to content

[v3] Regression: FlatList content doesn't scroll when stickyHeaderIndices is set, does not affect LegacyFlatlist #4328

Description

@gitChaoslord

Description

I updated react-native-gesture-handler from version 2.32.0 to 3.1.0 and noticed that some Flatlists in my app stopped scrolling, both in Android and iOS. The issue seems to be related to the property stickyHeaderIndices. LegacyFlatlists do not suffer from this issue, so this appears to be either a regression in the new implementation or a migration step that isn't documented or that I may have overlooked.

Android Emulator video

android.webm

Steps to reproduce

  1. Download the flatlist-no-scroll branch from the example repo
  2. Run the app in either IOS or Android
  3. Scroll both lists provided in the example
  4. You will notice the Flatlist scroll indicator will update but not the content of the list, LegacyFlatlist should work as expected.

A link to a Gist, an Expo Snack or a link to a repository based on this template that reproduces the bug.

https://github.com/gitChaoslord/rn-gesture-handler-issues
Branch in question example/flatlist-no-scroll
https://github.com/gitChaoslord/rn-gesture-handler-issues/tree/example/flatlist-no-scroll

Gesture Handler version

3.1.0

React Native version

0.86.0

Platforms

Android, iOS

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

New Architecture (Fabric)

Build type

Debug mode

Device

Android emulator

Device model

No response

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidThis issue is specific to AndroidPlatform: iOSThis issue is specific to iOSRepro providedA reproduction with a snack or repo is provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions