fix: add estimatedItemSize to FlashList to fix black screen issue
FlashList requires estimatedItemSize prop to properly render content. Without it, the list may appear blank even when data is present. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
0b344b6b5f
commit
a8b5ee5256
|
|
@ -393,6 +393,7 @@ export default function HomeScreen() {
|
||||||
)}
|
)}
|
||||||
keyExtractor={(item) => item.id!}
|
keyExtractor={(item) => item.id!}
|
||||||
numColumns={numColumns}
|
numColumns={numColumns}
|
||||||
|
estimatedItemSize={cardWidth * 1.5}
|
||||||
showsVerticalScrollIndicator={false}
|
showsVerticalScrollIndicator={false}
|
||||||
scrollEventThrottle={Platform.OS === 'ios' ? 16 : 50}
|
scrollEventThrottle={Platform.OS === 'ios' ? 16 : 50}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue