christopherdro / react-native-calendar

[DEPRECATED] Calendar Component for React Native
MIT License
536 stars 244 forks source link

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

Open jophyson93 opened 8 years ago

jophyson93 commented 8 years ago

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!

aprabaldi commented 8 years ago

+1

hejiaji commented 8 years ago

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

jophyson93 commented 8 years ago

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!

basequatro commented 8 years ago

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

basequatro commented 8 years ago

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

antsmo commented 7 years ago

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

christopherdro commented 7 years ago

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