Skip to content

Agenda stuck in month view - Android - Production buildΒ #2676

@Lewitje

Description

@Lewitje

react-native: 0.78.0
react-native-calendars: 1.1312.0 (Also tried with patch mentioned in #2610 )

Only happens on Android (version 14, can't reproduce it in Android 16)
Only happens in release mode, I can't reproduce it in debug mode.

After clicking around for a while it might open the list view, sometimes it doesnt.

`
...

import {Agenda} from "react-native-calendars";
import {
AgendaEntry,
AgendaSchedule,
DateData,
Theme,
} from "react-native-calendars/src/types";

...

export const ListScreen: FC = () => {
return (
<View style={[styles.container, styles.withDivider]}>
<Agenda
items={sortedItems}
renderEmptyDate={() => () as any}
renderDay={date => (

)}
renderItem={renderItem}
refreshing={refreshing}
minDate={MIN_DATE}
maxDate={MAX_DATE}
onDayPress={onDayPressCallback}
onDayChange={onDayChangeCallback}
onRefresh={onRefreshCallback}
loadItemsForMonth={loadItemsForMonthCallback}
pagingEnabled={true}
theme={THEME}
reservationsKeyExtractor={({reservation}, index) =>
reservation?.name || index.toString()
}
ref={agendaRef}
/>


);
};

...
`

calendar.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions