acro5piano / react-native-big-calendar

gcal/outlook like calendar component for React Native
https://react-native-big-calendar.vercel.app
MIT License
451 stars 152 forks source link

onChangeDate is not work #1075

Open Tocchizawa opened 4 months ago

Tocchizawa commented 4 months ago

Hello

If the onChangeDate event is not working, ensure that the Calendar component from react-native-big-calendar supports this prop and that it is correctly implemented. You might need to check the documentation or source code of the react-native-big-calendar library to confirm this.

return (
  <>
    <Calendar
      locale="ja"
      events={events}
      height={safeAreaHeight}
      mode="week"
      onChangeDate={([start, end]) => {
        console.log(`Date range changed: Start - ${start}, End - ${end}`);
      }}
    />
  </>
);

I was wondering if you could help me.