Skip to content

Flashlist 2.x, maintainVisibleContentPosition with translate-with-padding will scroll twice when keyboard showing #2026

@feierlaolao

Description

@feierlaolao

Description

The issue originates from: kirillzyusko/react-native-keyboard-controller#1110

Seems FlashList with autoscrollToBottomThreshold will try to scroll to bottom when keyboard is showing, So the list will scroll twice.
I'm not sure this is a Flashlist issue or KeyboardAvoidingView issue.

Current behavior

486768317-4c75bab4-4ccf-412a-9685-c00d640feb54.mp4

the list will scroll twice

Expected behavior

Scroll once

Reproduction

reproduction repo: https://github.com/debugtheworldbot/keyboard-controller-example

Platform

  • iOS

Environment

React Native info output:
"react-native-keyboard-controller": "1.18.5",
"@shopify/flash-list": "2.0.2",
"expo": "~54.0.25",
"react-native": "0.81.5",

FlashList version:2.0.2

Additional context

Checklist

  • I've searched existing issues and couldn't find a duplicate
  • I've provided a minimal reproduction (Expo Snack preferred)
  • I'm using the latest version of @shopify/flash-list
  • I've included all required information above

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions