mirror of
https://github.com/austinried/subtracks.git
synced 2025-12-29 01:19: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"
|
overScrollMode="never"
|
||||||
onEndReached={fetchNextPage}
|
onEndReached={fetchNextPage}
|
||||||
onEndReachedThreshold={6}
|
onEndReachedThreshold={6}
|
||||||
disableVirtualization={true}
|
// getItemLayout={(_data, index) => ({
|
||||||
getItemLayout={(_data, index) => ({
|
// length: height,
|
||||||
length: height,
|
// offset: height * Math.floor(index / 3),
|
||||||
offset: height * Math.floor(index / 3),
|
// index,
|
||||||
index,
|
// })}
|
||||||
})}
|
|
||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user