Make page size bigger (15->50) and fetch next page earlier

This project is a little bit slow to get the pages,
so it makes sense to fetch things earlier and to
get them in bigger chunks.
This commit is contained in:
Brandon Presley 2023-11-12 22:51:42 +13:00
parent 92dd65ffee
commit 054ae4557d
2 changed files with 2 additions and 1 deletions

View File

@ -148,6 +148,7 @@ export default function SetList() {
style={{ flex: 1 }}
renderItem={renderItem}
onEndReached={next}
onEndReachedThreshold={0.99}
refreshing={refreshing}
keyExtractor={(set) => set.id?.toString()}
onRefresh={() => {

View File

@ -3,4 +3,4 @@ export const PADDING = 10;
export const ITEM_PADDING = 8;
export const DARK_RIPPLE = "#444444";
export const LIGHT_RIPPLE = "#c2c2c2";
export const LIMIT = 15;
export const LIMIT = 50;