Shopify / Shopify/flash-list

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

Open
#2,026 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P2
Dominant language
TypeScript
Stars
7.2k
Forks
393
Avg merge
1d 3h
Merged PRs (30d)
1

Description

Description

The issue originates from: https://github.com/kirillzyusko/react-native-keyboard-controller/issues/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

https://github.com/user-attachments/assets/c0a19ef5-0c62-4c87-85e0-2003e9ab7379

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the reproduction in the keyboard-controller-example repository with FlashList 2.0.2 on iOS, focusing on autoscrollToBottomThreshold, maintainVisibleContentPosition, and translate-with-padding while the keyboard appears. Confirm the two scroll events and trace the relevant FlashList behavior; done means the list scrolls only once.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.