react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

Agenda Initially Expanded and Non-Responsive in iOS

Open Rakhilpr96 opened this issue 10 months ago • 12 comments

After upgrading from Expo 49.0.15 & React Native 0.72.10 to Expo 52.0.28 & React Native 0.76.6, the Agenda component is displaying as expanded initially on iOS. Additionally, it is not scrollable and does not allow dragging to collapse or expand. However, when I manually tap at the position of the knob in the expanded view, it expands again and starts working as expected. Checked this with both react-native-calendars version 1.1304.1 & 1.1308.1.

Expected Behavior

  • The Agenda should start in a collapsed state (or the default initial state).
  • It should be scrollable and allow dragging to expand/collapse from the start.

Observed Behavior

  • The Agenda component starts in a fully expanded state instead of the expected initial state.
  • It is not scrollable or draggable initially.
  • Tapping on the position of the knob causes it to expand again, after which it works correctly.

Usage :

          <Agenda
            items={items}
            renderItem={() => (
              <View><Text>Main View</Text></View>
            )}
            rowHasChanged={(r1, r2) => {
              return r1.text !== r2.text;
            }}
            showOnlySelectedDayItems
            showClosingKnob={true}
            renderEmptyData={() => (
              <View><Text>Empty</Text></View>
            )}
            onDayPress={({ dateString }) => console.log(dateString)}
            />

Environment

  • Expo SDK: 52.0.28
  • React Native: 0.76.6
  • React Native Calendars: 1.1304.1 & 1.1308.1

Has anyone else encountered this issue after upgrading? Any suggested workarounds or fixes?

https://github.com/user-attachments/assets/6cf671ba-e674-4ff0-ab48-aaceaa45de6c

Rakhilpr96 avatar Feb 02 '25 09:02 Rakhilpr96

same here, this is hapenning since I've upgrade to expo 52 😔

chrisdev3001 avatar Feb 07 '25 00:02 chrisdev3001

Same here after upgrading to RN 0.76.7 but not on every iOS device thought which makes is more difficult to track down.

nzaghini-phorest avatar Feb 13 '25 16:02 nzaghini-phorest

same problem here on ios and on android agenda disappeares on load 😔

ArturSousaFerreira avatar Feb 24 '25 17:02 ArturSousaFerreira

I just removed this prop:

showClosingKnob={true}

and now it works like a charm 🚀

chrisdev3001 avatar Mar 02 '25 03:03 chrisdev3001

same here and removing the showClosingKnob={true} did not work either

pannagger avatar Mar 09 '25 16:03 pannagger

https://github.com/user-attachments/assets/73bbfdea-b8ce-40b9-87f5-e0f4235a248d

Same problem for me as well with SDK 52.0.36, react-native 0.76.7 and React Native Calendars: 1.1310.0

simnik12 avatar Mar 17 '25 10:03 simnik12

Hello ! Same problem for me and I don't have Expo. I'm in a bare React Native project with react-native 0.77.1 and react-native-calendars 1.1310.0

Catnais88 avatar Mar 28 '25 14:03 Catnais88

Screen.Recording.2025-03-17.at.11.42.42.AM.mov Same problem for me as well with SDK 52.0.36, react-native 0.76.7 and React Native Calendars: 1.1310.0

Any solution yet?

simnik12 avatar Apr 08 '25 06:04 simnik12

Hi folks, I did some local debugging and found a small fix that seems to work on my end. Please check out this PR and let me know if it works for you as well: https://github.com/wix/react-native-calendars/pull/2640

Branch name: pannagger:fix/agenda/ios/issue2592

Looking forward to your feedback!

pannagger avatar Apr 16 '25 10:04 pannagger

@pannagger Any luck moving your PR forward?

simon-musy avatar Jun 11 '25 08:06 simon-musy

Hi folks, I did some local debugging and found a small fix that seems to work on my end. Please check out this PR and let me know if it works for you as well: #2640

Branch name: pannagger:fix/agenda/ios/issue2592

Looking forward to your feedback!

Yes, this solution works for me. Thank you

Rakhilpr96 avatar Jun 14 '25 18:06 Rakhilpr96

Hi folks, I did some local debugging and found a small fix that seems to work on my end. Please check out this PR and let me know if it works for you as well: #2640

Branch name: pannagger:fix/agenda/ios/issue2592

Looking forward to your feedback!

It's working better but i'm still noticing iOS flickering on mount.

ItsNoHax avatar Nov 11 '25 09:11 ItsNoHax