Re-rendering issue in horizontal flatlist #35542
Labels
Component: FlatList
Needs: Triage 🔍
Stale
There has been a lack of activity on this issue and it may be closed soon.
Description
The issue is FlatList component gets rendered many times if the
data. length
is greater than 15this flatList rendered 25 times, even the
data.length
is just 15Version
^0.67.4
Output of
npx react-native info
OS: macOS 12.5.1
CPU: (8) arm64 Apple M1
Memory: 117.08 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.9.0 - /opt/homebrew/bin/node
Yarn: 1.22.19 - /opt/homebrew/bin/yarn
npm: 8.19.1 - /opt/homebrew/bin/npm
Watchman: 2022.09.05.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 16.0, macOS 12.3, tvOS 16.0, watchOS 9.0
Android SDK: Not Found
IDEs:
Android Studio: 2020.3 AI-203.7717.56.2031.7678000
Xcode: 14.0.1/14A400 - /usr/bin/xcodebuild
Languages:
Java: 18.0.1.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: ^0.67.4 => 0.67.4
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
just write this flatList in your app.js
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: