BugiDev / react-native-calendar-strip

Easy to use and visually stunning calendar component for React Native.
MIT License
939 stars 327 forks source link

How to disable on press date ? #138

Closed huynguyen2903 closed 4 years ago

huynguyen2903 commented 5 years ago

How can I disable on press onDateSelected?. Thanks!

peacechen commented 5 years ago

Use the datesBlacklist prop: https://github.com/BugiDev/react-native-calendar-strip#initial-data-and-ondateselected-handler

hani-q commented 4 years ago

Actually this is a different question, I make an axio call each time a day is pressed. I want the calendar header to be disabled for selection of any further dates until the call has returned some data

Can i pass isFecthing bool anywhere to the component to disable it during the fetch request ?

peacechen commented 4 years ago

You could try to pass a height of 0 to calendarHeaderContainerStyle. If that doesn't work, a new prop would need to be added. Please open a new issue for different topics.