Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selection moves to first day when other day is selected for the first time. #166

Open
Resource-4 opened this issue Jan 2, 2025 · 0 comments

Comments

@Resource-4
Copy link

Try to select another day for the first time when the calendar loads or swipe but it moves to the first day
i checked it not happening when i pass numberOfDays more than 1

MicrosoftTeams-video.2.1.mp4

version : 2.2.1
expo:52.0.11
react-native:0.76.3

<CalendarContainer
ref={calendarRef}
events={events}
numberOfDays={1}
theme={theme}
useHaptic={true}
useAllDayEvent={true}
allowDragToCreate={true}
allowDragToEdit={true}
allowPinchToZoom={true}
defaultDuration={30}
spaceFromTop={10}
spaceFromBottom={6}
minDate={new Date()}
maxDate={moment().add(11, 'day').format('YYYY-MM-DD')}
onDateChanged={onDateChanged}
onDragEventStart={hapticEffect}
initialTimeIntervalHeight={120}
dragStep={30}
onDragCreateEventStart={onDragCreateEventStart}
onDragEventEnd={onDragEventEnd}
onDragSelectedEventStart={onDragCreateEventStart}
onDragSelectedEventEnd={onDragSelectedEventEnd}
selectedEvent={selectedEvent}
onPressBackground={onPressBackground}
unavailableHours={unavailableHours}
onDragCreateEventEnd={handleDragCreateEnd}
onPressEvent={onPressEvent}
onLongPressEvent={onLongPressEvent}
>
<CalendarHeader
dayBarHeight={0}
headerBottomHeight={0}
renderHeaderItem={() => null}
eventInitialMinutes={1}
collapsedItems={1}
/>
<CalendarBody
renderEvent={(event) =>
RenderEvent(event, onPressEdit)
}
/>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant