wix / react-native-calendars

React Native Calendar Components πŸ—“οΈ πŸ“†
MIT License
9.32k stars 2.9k forks source link

TimelineList scrolling animation is janky #2382

Open HonestCodeWasTaken opened 6 months ago

HonestCodeWasTaken commented 6 months ago

Description

Scrolling is sometimes janky

https://github.com/wix/react-native-calendars/assets/59506416/f63a5146-89b4-4526-b907-7bca58a02591

      <CalendarProvider
        date={currentDate}
        onDateChanged={onDateChanged}
        onMonthChange={onMonthChange}
        showTodayButton
        disabledOpacity={0.6}
        // numberOfDays={2}
      >
        <ExpandableCalendar
          disablePan
          hideKnob
          firstDay={1}
          leftArrowImageSource={Images.Previous}
          rightArrowImageSource={Images.Next}
          markedDates={marked}
        />
        <TimelineList
          events={eventsByDate}
          timelineProps={timelineProps}
          showNowIndicator
          // scrollToNow
          scrollToFirst
          initialTime={INITIAL_TIME}
        />
      </CalendarProvider>

Expected Behavior

I was scrolling intensively

Observed Behavior

The scrolling seems to teleport in places

Environment

  1. Device/emulator/simulator & OS version: Iphone 14 pro, Simulator on MacOS 13.2 (22D49)

Maybe flashList is a solution for this? Ill look into possibly replacing the list later in code

t2 commented 5 months ago

@HonestCodeWasTaken I'm seeing this too. Did you fix it?

comptergeeks commented 4 months ago

Did you guys ever figure it out? Also having this bug.