TimelineList Event Bug
Description
Issue with TimelineList events
Expected Behavior
TimeLine should show the events are per JSON data but its is only considering the time from the json where as date is considering today only. No effect of passing date in the timelineProps
Observed Behavior
Timeline not populating data of json for respective date
What actually happened when you performed the above actions? Nothing populated
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars:[email protected]npm ls react-native:[email protected]
Also specify:
- Device/emulator/simulator & OS version: General Issue
Also: When date is passed, Timeline should not be scrollable horizontally.
event data
const EVENTS = [
{
id: 1,
start: `2022-03-31 13:20:00`,
end: `2022-03-31 15:00:00`,
title: 'Merge Request to React Native Calendars',
summary: 'Merge Timeline Calendar to React Native Calendars'
},
{
id: 2,
start: `2022-03-31 13:15:00`,
end: `2022-03-31 14:30:00`,
title: 'Meeting A',
// summary: 'Summary for meeting A',
color: '#e6add8'
}]
<TimelineList
events={{ "2022-03-02": EVENTS }}
// events={{ "2022-03-31": EVENTS }}//nothing will populate
timelineProps={{
format24h: false,
onBackgroundLongPress: createNewEvent,
scrollToFirst: true,
start: openingHour,
end: closingHour,
overlapEventsSpacing: 8,
// date: "2022-03-31" //no effect
}}
showNowIndicator
scrollToNow
scrollToFirst
initialTime={INITIAL_TIME}
Are there any fixes for this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
facing same issues? Why no one care about it?
i got this error when test your code
when pass EVENTS to event props it's working normally, so whats happened to me?
i saw the events props accepted array, how can u passed JSON OBJECt with out cause error?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.