I'm using React Native and React-Native-Calendars by wix to create a student calendar app. I want to have a list of events that each have a title and date. When you press on a day in the calendar (by using the onDayPress function) I want it to display every event that has that date. The date format is "YYYY-MM-DD" (for example "2023-04-01").
The default functionality should be that the current date once you open the app initially should display the events for that day and then only after you press on another day it changes to that.
I tried to map the list of events using a tutorial I found online but it didn't work.