Open Neopentene opened 5 months ago
:warning: | Newer Version of React Native is Available! |
---|---|
:information_source: | You are on a supported minor version, but it looks like there's a newer patch available - 0.73.6. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases. |
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
β οΈ Newer Version of React Native is Available! βΉοΈ You are on a supported minor version, but it looks like there's a newer patch available - 0.73.6. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.
Upgraded the version yet the issue is still persists.
Added link to a snack to reproduce this issue: https://staging-snack.expo.dev/kawPQ53xi5xNUpxnPKYfB
Temporary solution for the issue is adding this line to FlatList contentContainerStyle={{ flexGrow: 1 }}
Temporary solution for the issue is adding this line to FlatList
contentContainerStyle={{ flexGrow: 1 }}
Thanks for the temporary fix but this issue needs fixing even without flexGrow: 1
or minHeight: '100%'
. If there is no content to scroll then scroll should not bug out like this.
I also had this issue with nested scroll using ScrollView
Description
Content teleports to right when over-scrolling, if the content is less.
What I am trying to do? π€
Two
FlatList
components are nested inside aScrollView
for a custom component to emulate a grid like structure.Example:
[]
represent grid items and|
represents edge of the screen. The items are accessed by scrolling horizontally.How am I doing this? β
ScrollView
to disable individual vertical scroll bars for the columns when the component has less space. The firstFlatList
to enable horizontal behavior of grid The secondFlatList
component are columns. The component can be given used to render list of varying sizes.When the bug occurs? πͺ²
The bug happens when data is less and rows to render are more. This causes the array to be chunked in the following way:
Steps to reproduce
HorizontalRowList
component given in the descriptionHorizontalRowList
HorizontalRowList
HorizontalRowList
and observe the behaviorReact Native Version
0.73.6
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
Please check this snack
https://staging-snack.expo.dev/kawPQ53xi5xNUpxnPKYfB
Screenshots and Videos