react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Focus on TextInput inside Flatlist's sticky ListHeaderComponent makes list scroll position snap to y = 0

Open nunoplima opened this issue 2 years ago • 1 comments

Description

When running on Android, after scrolling the Flatlist and getting its content below the fixed ListHeaderComponent, when focusing the TextInput that lives inside the given header, the screen flickers and the list snaps back to scroll position y = 0.

On iOS everything runs as supposed.

Version

0.68.2

Output of npx react-native info

System: OS: macOS 12.5.1 CPU: (8) arm64 Apple M1 Pro Memory: 99.77 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node Yarn: 1.22.17 - /opt/homebrew/bin/yarn npm: 8.1.2 - ~/.nvm/versions/node/v16.13.1/bin/npm Watchman: Not Found Managers: CocoaPods: Not Found SDKs: iOS SDK: Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5 Android SDK: Not Found IDEs: Android Studio: Not Found Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild Languages: Java: Not Found npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.2 => 0.68.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Using the snack below, on Android, scroll the list and focus the input in the header, notice that the list snaps to new scroll position where y = 0.

Snack, code example, screenshot, or link to a repository

https://snack.expo.dev/@nungon/restless-chip

nunoplima avatar Sep 07 '22 23:09 nunoplima

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Mar 07 '23 00:03 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Mar 14 '23 12:03 github-actions[bot]