mirror of
https://github.com/anultravioletaurora/Jellify.git
synced 2025-12-16 18:55:44 -06:00
fix lists flickering in the library
This commit is contained in:
@@ -142,6 +142,10 @@ export default function Albums({
|
||||
ItemSeparatorComponent={ItemSeparatorComponent}
|
||||
refreshControl={refreshControl}
|
||||
stickyHeaderIndices={stickyHeaderIndices}
|
||||
stickyHeaderConfig={{
|
||||
// The list likes to flicker without this
|
||||
useNativeDriver: false,
|
||||
}}
|
||||
onScrollBeginDrag={closeAllSwipeableRows}
|
||||
removeClippedSubviews
|
||||
/>
|
||||
|
||||
@@ -148,6 +148,10 @@ export default function Artists({
|
||||
}
|
||||
renderItem={renderItem}
|
||||
stickyHeaderIndices={stickyHeaderIndices}
|
||||
stickyHeaderConfig={{
|
||||
// The list likes to flicker without this
|
||||
useNativeDriver: false,
|
||||
}}
|
||||
onStartReached={() => {
|
||||
if (artistsInfiniteQuery.hasPreviousPage)
|
||||
artistsInfiniteQuery.fetchPreviousPage()
|
||||
|
||||
@@ -152,6 +152,10 @@ export default function Tracks({
|
||||
}}
|
||||
onScrollBeginDrag={handleScrollBeginDrag}
|
||||
stickyHeaderIndices={stickyHeaderIndicies}
|
||||
stickyHeaderConfig={{
|
||||
// The list likes to flicker without this
|
||||
useNativeDriver: false,
|
||||
}}
|
||||
ListEmptyComponent={
|
||||
<YStack flex={1} justify='center' alignItems='center'>
|
||||
<Text marginVertical='auto' color={'$borderColor'}>
|
||||
|
||||
Reference in New Issue
Block a user