Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we add some css class to calender header. Need to hide it in one of usecase #473

Closed
mindbodysolotestfirebase opened this issue Jul 29, 2021 · 6 comments
Labels

Comments

@mindbodysolotestfirebase
Copy link
Contributor

Need to hide calendar header which shows date. Any ways to do it? Can we provide any class to handle css

@acro5piano
Copy link
Owner

Hi, thanks for your interest in this project.

What do you mean by "hide"? Does it means to remove the element entirely, or make it invisible?
In either way, there is no way to do it for now, I'll work on improve it soon. I'll add this to the to-do list.

@mindbodysolotestfirebase
Copy link
Contributor Author

Thanks @acro5piano for replying. Yes means customized css classes for calendar header so that we can make css changes

@VinitSarvade
Copy link

I would like to take this up @acro5piano. Will send out a PR shortly.

@acro5piano
Copy link
Owner

@VinitSarvade Fantastic! Could you implement it by adding renderCalendarHeader prop? It should accept appropriate date range.
It makes the component more flexible. Thanks!

@acro5piano
Copy link
Owner

acro5piano commented Aug 1, 2021

@VinitSarvade
@mindbodysolotestfirebase

I'm working on this PR and will release v2.0.0-beta soon.

#475

@acro5piano
Copy link
Owner

acro5piano commented Aug 1, 2021

As I've published v2.0.0-rc and implemented this topic, I'll close this issue. If you have bugs on it, feel free to report it!

https://github.com/acro5piano/react-native-big-calendar/releases/tag/v2.0.0-rc

Summary: Please add renderHeader={() => null}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants