<View style={styles.placesBlock}>
<Text style={styles.heading}>{languages.edit_section_time_of_day}</Text>
<View style={styles.places}>
{timeOfDay.map(({value, title}, index) => (
<TouchableOpacity key={index} onPress={() => {
setTimeOfDay(value)
}}>
<Label style={{...styles.timeOfDayLabel, width: (deviceWidth / 2 - 20)}} place={title}
languages={languages}
focused={value === activeTimeOfDay}>
<Image
style={{
marginHorizontal: 5,
width: 16,
height: 16,
tintColor: value === activeTimeOfDay ? '#fff' : '#000'
}}
source={value === 'day' ? require('../../images/icons/ic_day.png') : require('../../images/icons/ic_night.png')}
/>
</Label>
</TouchableOpacity>
))}
</View>
</View>