fix: remove keyExtractor from flashlist (untested)

This commit is contained in:
amsyarasyiq 2024-08-15 11:37:19 +08:00
parent 60a95aba10
commit 5afcb7b330

View file

@ -60,15 +60,12 @@ export default function AddonPage<T extends object>({ card: CardComponent, ...pr
<FlashList
data={data}
extraData={search}
keyExtractor={(i: any) => i?.id}
estimatedItemSize={136}
ListHeaderComponent={headerElement}
contentContainerStyle={{ padding: 8, paddingHorizontal: 12 }}
ItemSeparatorComponent={() => <View style={{ height: 8 }} />}
ListFooterComponent={props.ListFooterComponent}
renderItem={({ item }: any) => (
<CardComponent item={item} />
)}
renderItem={({ item }: any) => <CardComponent item={item} />}
/>
{(props.fetchFunction ?? props.onFabPress) && <FloatingActionButton
icon={findAssetId("PlusLargeIcon")}