123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- diff --git a/node_modules/react-native-calendar-picker/CalendarPicker/Day.js b/node_modules/react-native-calendar-picker/CalendarPicker/Day.js
- index f79b618..e163c31 100644
- --- a/node_modules/react-native-calendar-picker/CalendarPicker/Day.js
- +++ b/node_modules/react-native-calendar-picker/CalendarPicker/Day.js
- @@ -197,15 +197,43 @@ export default function Day(props) {
- );
- } else {
- return (
- - <View style={[styles.dayWrapper, custom.containerStyle]}>
- - <TouchableOpacity
- - disabled={!enableDateChange}
- - style={[custom.style, computedSelectedDayStyle, selectedDayStyle ]}
- - onPress={() => onPressDay({year, month, day}) }>
- - <Text style={[styles.dayLabel, textStyle, custom.textStyle, selectedDayTextStyle]}>
- - { day }
- - </Text>
- - </TouchableOpacity>
- + <View style={[styles.dayWrapper, custom.containerStyle, {position: 'relative'}]}>
- + {!(selectedStartDate && !selectedEndDate && isThisDaySameAsSelectedStart) && (
- + <TouchableOpacity
- + disabled={!enableDateChange}
- + style={[custom.style, computedSelectedDayStyle, selectedDayStyle]}
- + onPress={() => onPressDay({year, month, day}) }>
- + <Text style={[
- + styles.dayLabel,
- + textStyle,
- + custom.textStyle,
- + selectedDayTextStyle,
- + { color: '#0F3F4F' },
- + (thisDay.isSame(today, 'day') && (isThisDaySameAsSelectedStart || isThisDaySameAsSelectedEnd)) && { borderWidth: 0 }
- + ]}>
- + { day }
- + </Text>
- + </TouchableOpacity>
- + )}
- +
- + {(thisDay.isSame(selectedStartDate, 'day') || thisDay.isSame(selectedEndDate, 'day')) && (
- + <TouchableOpacity
- + disabled={!enableDateChange}
- + style={[{position: 'absolute'}]}
- + onPress={() => onPressDay({year, month, day}) }>
- + <Text style={[styles.dayLabel, textStyle, custom.textStyle, selectedDayTextStyle, {
- + backgroundColor: '#0F3F4F',
- + borderRadius: 17,
- + height: 34,
- + width: 34,
- + textAlign: 'center',
- + verticalAlign: 'middle',
- + overflow: 'hidden',
- + }]}>
- + { day }
- + </Text>
- + </TouchableOpacity>
- + )}
- </View>
- );
- }
|