mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 06:52:43 +01:00
getItemLayout only seems to cause problems
like the list jumping around when items are removed
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user