Open VinitSarvade opened 3 years ago
Thanks for reporting.
Which platform are you trouble in? and how your CalendarHeader
looks like?
It does not happen when I tried on the web - please check it the following files.
Thanks
Thanks for reporting.
Which platform are you trouble in? and how your
CalendarHeader
looks like?It does not happen when I tried on the web - please check it the following files.
- src: https://github.com/acro5piano/react-native-big-calendar/blob/master/stories/full-customization.stories.tsx
- story: https://react-native-big-calendar.netlify.app/?path=/story/full-customization--main
Thanks
I've tried it on both android and ios. I've also updated the issues with the CalenderHeader
code and the correct video that shows the issue.
It's strange.
Just runned into this issue too, the date state coming from the context updates the Header component but not the Calendar component, any news?
It's the same thing with the mode prop, when I try to change its value with a variable, nothing changes, and the component defaults to the "week" mode.
Found out what I was doing wrong, I was trying to use the context on the component that was using the provider, that is why it was all undefined, the mode and date props are working properly on my android.
I've added a custom header to the calendar, where I'm allowing the change of date with prev and next buttons. Clicking these buttons, the date is being updated and passed on to the Calendar component. But the Calendar UI remains the same. It does not change to the date. Swipping on the calendar works, but not via an external state.
Here is my code
Here is the CalenderHeader
This is happening on both Android and iOS. Tested on android device and iOS simulator.
Here is the behavior - https://user-images.githubusercontent.com/12946926/127954631-3765fb86-8eb5-47f5-869b-8df198b2feea.mp4
In the above video, you can see that initially swiping on the screen takes me to the previous date. But when I try to click on the header buttons, I see a flicker but the current day calendar does not change.