wix / react-native-calendars

React Native Calendar Components 🗓️ 📆
MIT License
9.55k stars 2.96k forks source link

How to adjust TimelineList interval/minutes? #2544

Open bpetrovbg opened 1 week ago

bpetrovbg commented 1 week ago

Description

I'm using the react-native-calendars library in my React Native project to display a timeline view with events scheduled throughout the day. By default, the time intervals on the left side of the timeline are set to 30 minutes, as shown in the image:

image

Expected Behavior

I'd like to modify these time intervals to display every 15 minutes instead of the default 30-minute intervals. I need more control over how these intervals are displayed to better match my scheduling needs.

Observed Behavior

I could not find anything in the documentation, this feature seems crutial for a calendar, is it missing?

Other info

https://stackoverflow.com/questions/78927773/how-to-adjust-time-intervals-in-react-native-calendars-to-less-than-1-hour-30-mi

kaloyan-ivanov commented 1 week ago

I'm also encountering a similar challenge. In my case, I need to adjust the timeline intervals to better suit my app's scheduling requirements, but I haven't found a way to modify the default 30-minute intervals either.