import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import { ThemeType } from '../../types'; const SHOULD_NOT_UPDATE = true; interface WeekColumnProps { day: string; theme: ThemeType; } const styles = StyleSheet.create({ weekColumnContainer: { flex: 1, alignItems: 'center', }, weekDaysContainer: { flexDirection: 'row', }, }); const WeekColumn = React.memo( (props: WeekColumnProps) => ( {props.day} ), () => SHOULD_NOT_UPDATE ); interface WeekDaysProps { days: string[]; theme: ThemeType; } export default React.memo( (props: WeekDaysProps) => ( {props.days.map((day: string) => ( ))} ), () => SHOULD_NOT_UPDATE );