Add pagination props to ListFooter and enable border top

Pass isFetchingNextPage, hasNextPage, error, and onRetry props to
ListFooter for consistent pagination behavior. Remove borderTopWidth: 0
to allow the border top to render like other list implementations.
This commit is contained in:
Claude
2026-01-21 19:04:56 +00:00
committed by Samuel Newman
parent ae5985501e
commit 82f304eb4a
@@ -168,9 +168,24 @@ export function ProfileStarterPacks({
return <CreateAnother style={{paddingBottom: bottomBarOffset}} />
}
return (
<ListFooter style={{paddingBottom: bottomBarOffset, borderTopWidth: 0}} />
<ListFooter
isFetchingNextPage={isFetchingNextPage}
hasNextPage={hasNextPage}
error={isError ? 'Could not load more starter packs' : undefined}
onRetry={fetchNextPage}
style={{paddingBottom: bottomBarOffset}}
/>
)
}, [data, items?.length, isMe, bottomBarOffset])
}, [
data,
items?.length,
isMe,
bottomBarOffset,
isFetchingNextPage,
hasNextPage,
isError,
fetchNextPage,
])
return (
<View testID={testID} style={style}>