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:
imeepos 2026-01-21 15:22:48 +08:00
parent 0b344b6b5f
commit a8b5ee5256
1 changed files with 1 additions and 0 deletions

View File

@ -393,6 +393,7 @@ export default function HomeScreen() {
)}
keyExtractor={(item) => item.id!}
numColumns={numColumns}
estimatedItemSize={cardWidth * 1.5}
showsVerticalScrollIndicator={false}
scrollEventThrottle={Platform.OS === 'ios' ? 16 : 50}
/>