Skip to content

Commit d8ae996

Browse files
committed
Changes for day names
1 parent efbd3e7 commit d8ae996

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/expandableCalendar/WeekCalendar/index.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,7 @@ const WeekCalendar = (props: WeekCalendarProps) => {
220220
month={currentMonth}
221221
accessibilityElementsHidden={true} // iOS
222222
importantForAccessibility={'no-hide-descendants'} // Android
223+
hideDayNames={true}
223224
/>
224225
);
225226
};

src/expandableCalendar/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ const ExpandableCalendar = forwardRef<ExpandableCalendarRef, ExpandableCalendarP
606606

607607
const renderKnob = () => {
608608
return (
609-
<View style={style.current.knobContainer} pointerEvents={'box-none'}>
609+
<View style={[style.current.knobContainer, !disablePan && style.current.knobPosition]} pointerEvents={'box-none'}>
610610
<TouchableOpacity
611611
style={style.current.knob}
612612
testID={`${testID}.knob`}
@@ -623,7 +623,7 @@ const ExpandableCalendar = forwardRef<ExpandableCalendarRef, ExpandableCalendarP
623623
const WeekComponent = disableWeekScroll ? Week : WeekCalendar;
624624
return (
625625
<WeekComponent
626-
showHeader
626+
showHeader={disablePan}
627627
testID={`${testID}.weekCalendar`}
628628
firstDay={firstDay}
629629
{...others}

src/expandableCalendar/style.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ export default function styleConstructor(theme: Theme = {}) {
3030
container: {
3131
backgroundColor: appStyle.calendarBackground
3232
},
33-
knobContainer: {
33+
knobPosition: {
3434
position: 'absolute',
3535
left: 0,
3636
right: 0,
37-
height: KNOB_CONTAINER_HEIGHT,
3837
bottom: 0,
38+
},
39+
knobContainer: {
40+
height: KNOB_CONTAINER_HEIGHT,
3941
alignItems: 'center',
4042
justifyContent: 'center',
4143
backgroundColor: appStyle.calendarBackground

0 commit comments

Comments
 (0)