We are using react-native-calendar from wix.com, we are planning to create a dark mode version but we can not change the agenda background colore. how can i access it ?
I’ve found a solution to style the calendar element, the scrollpad, but ot the background of the view where all events are renderd.
2
Answers
I saw an example of the Agenda component on the repository and figure out it has a prop called
theme
. In thetypes.ts
file, you can see the theme interface and all properties. Follow a simple example:I created a snack on Expo for you to see the complete example on the computer with the source code. Or you scan the QR Code from your smartphone using the Expo Go app.
You can change the agenda background color by modifying the value of
reservationsBackgroundColor
inside yourtheme
object. Here is an example :