react-native-calendars icon indicating copy to clipboard operation
react-native-calendars copied to clipboard

TimelineList Event Bug

Open imdkbj opened this issue 3 years ago • 6 comments

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:

Also specify:

  1. 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}

imdkbj avatar Mar 02 '22 11:03 imdkbj

Are there any fixes for this?

bosheski avatar Apr 04 '22 16:04 bosheski

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.

stale[bot] avatar Jul 06 '22 22:07 stale[bot]

facing same issues? Why no one care about it?

fukemy avatar Jul 18 '22 03:07 fukemy

Screen Shot 2022-07-18 at 10 59 11 i got this error when test your code

fukemy avatar Jul 18 '22 03:07 fukemy

when pass EVENTS to event props it's working normally, so whats happened to me?

fukemy avatar Jul 18 '22 04:07 fukemy

Screen Shot 2022-07-18 at 11 14 53 i saw the events props accepted array, how can u passed JSON OBJECt with out cause error?

fukemy avatar Jul 18 '22 04:07 fukemy

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.

stale[bot] avatar Oct 16 '22 15:10 stale[bot]