getItemLayout only seems to cause problems

like the list jumping around when items are removed
This commit is contained in:
austinried 2021-08-19 11:47:48 +09:00
parent 79a42b9adb
commit a5c2aa9cf8

View File

@ -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>
)