mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-27 00:59:28 +01:00
getItemLayout only seems to cause problems
like the list jumping around when items are removed
This commit is contained in:
parent
79a42b9adb
commit
a5c2aa9cf8
@ -70,12 +70,11 @@ const AlbumsList = () => {
|
||||
overScrollMode="never"
|
||||
onEndReached={fetchNextPage}
|
||||
onEndReachedThreshold={6}
|
||||
disableVirtualization={true}
|
||||
getItemLayout={(_data, index) => ({
|
||||
length: height,
|
||||
offset: height * Math.floor(index / 3),
|
||||
index,
|
||||
})}
|
||||
// getItemLayout={(_data, index) => ({
|
||||
// length: height,
|
||||
// offset: height * Math.floor(index / 3),
|
||||
// index,
|
||||
// })}
|
||||
/>
|
||||
</View>
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user