mirror of
https://github.com/austinried/subtracks.git
synced 2026-03-28 07:12: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"
|
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>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user