import React, { useMemo } from 'react'; import { StyleSheet, View } from 'react-native'; import { WeekComponentProps } from '../componentTypes'; import { constants, markedDatesForWeek } from '../helpers'; const Week = ({ Day, dayTheme, listWidth, markedDates, onDayPress, theme, week, }: WeekComponentProps) => { const weekMarkedDates = useMemo(() => markedDatesForWeek(week, markedDates), [week, markedDates]); return ( {week.map((item, index) => ( ))} ); }; export default React.memo(Week); const styles = StyleSheet.create({ container: { flexDirection: 'row', }, });