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

Month view doesn't get displayed when scrollEnabled is true and calendar is in modal

Open jophyson93 opened this issue 9 years ago • 7 comments

Hey so I wanted to put the calendar in a modal that comes up when a button is clicked to pick date. It seems when scrollEnabled is true, the display appears blank UNTIL you start scrolling.

I assume it's because I'm using it in a modal. Is there any way around this issue? Thanks in advance!

jophyson93 avatar Oct 15 '16 19:10 jophyson93

+1

aprabaldi avatar Oct 19 '16 14:10 aprabaldi

@jophyson93 what kind of model did you use? can you introduce more detail?

hejiaji avatar Oct 30 '16 18:10 hejiaji

Sorry for replying so late!

I used the react native modal: https://facebook.github.io/react-native/docs/modal.html

I didn't do anything fancy with the modal. When a button gets pressed, the modal comes up. That's all. Hope that's what you were asking for.

Thanks in advance for any help!

jophyson93 avatar Nov 06 '16 17:11 jophyson93

same goes for collapsible, but for modal it's working fine. https://github.com/oblador/react-native-collapsible/issues/57

basequatro avatar Nov 28 '16 02:11 basequatro

This bugs only happens when there's no eventDates props set on current month.

basequatro avatar Dec 06 '16 03:12 basequatro

Is there any news on fixing this bug? Just started using this component and I'm getting this issue too

antsmo avatar Apr 07 '17 13:04 antsmo

@MyGuySi Can you try this proposed solution and see if that works? https://github.com/christopherdro/react-native-calendar/pull/91

christopherdro avatar Apr 25 '17 16:04 christopherdro