diff --git a/src/screens/CalendarScreen.tsx b/src/screens/CalendarScreen.tsx index 8399c70..896710b 100644 --- a/src/screens/CalendarScreen.tsx +++ b/src/screens/CalendarScreen.tsx @@ -663,20 +663,25 @@ export default function CalendarScreen() { {t('calPickName')} ({parsedSchedule.employees.length} trovati) - String(i)} - style={{ maxHeight: 400 }} - nestedScrollEnabled - renderItem={({ item }) => ( - selectEmployee(item)} - > - {item.name} - - - )} + String(i)} + style={{ maxHeight: 400 }} + nestedScrollEnabled + renderItem={({ item }) => ( + selectEmployee(item)} + > + {item.name} + + + )} + // Performance optimization: Virtualization props to reduce memory and render time for large lists + initialNumToRender={15} + maxToRenderPerBatch={10} + windowSize={5} + removeClippedSubviews={true} /> )} diff --git a/src/screens/FlightScreen.tsx b/src/screens/FlightScreen.tsx index e200b90..15d4489 100644 --- a/src/screens/FlightScreen.tsx +++ b/src/screens/FlightScreen.tsx @@ -923,6 +923,11 @@ export default function FlightScreen() { refreshControl={ { setRefreshing(true); fetchAll(); }} tintColor={colors.primary} />} ListEmptyComponent={{t('flightNoFlights')}} showsVerticalScrollIndicator={false} + // Performance optimization: Virtualization props to reduce memory and render time for large lists + initialNumToRender={15} + maxToRenderPerBatch={10} + windowSize={5} + removeClippedSubviews={true} /> )} diff --git a/src/screens/PasswordScreen.tsx b/src/screens/PasswordScreen.tsx index a9611d8..1ae475d 100644 --- a/src/screens/PasswordScreen.tsx +++ b/src/screens/PasswordScreen.tsx @@ -323,6 +323,11 @@ export default function PasswordScreen() { } showsVerticalScrollIndicator={false} + // Performance optimization: Virtualization props to reduce memory and render time for large lists + initialNumToRender={15} + maxToRenderPerBatch={10} + windowSize={5} + removeClippedSubviews={true} /> {/* Add / Edit modal */}