'use client'; import React from 'react'; import { FlatList as RNFlatList, Platform, FlatListProps } from 'react-native'; // Performance-optimized FlatList with Android defaults export function FlatList(props: FlatListProps) { // Apply Android-specific performance defaults if not explicitly overridden const optimizedProps = Platform.OS === 'android' ? { removeClippedSubviews: true, maxToRenderPerBatch: 5, updateCellsBatchingPeriod: 100, initialNumToRender: 5, windowSize: 5, ...props, } : props; return ; } // Also export the original for advanced use cases export { FlatList as RNFlatList } from 'react-native';