HosseinShabani / react-native-modern-datepicker

A customizable calendar, time & month picker for React Native (including Persian Jalaali calendar & locale)
MIT License
573 stars 159 forks source link

Time mode - VirtualizedList: You have a large list that is slow to update #145

Open NicolasAlt128 opened 7 months ago

NicolasAlt128 commented 7 months ago

When i use time mode i get this error :

LOG VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc. {"contentLength": 1702.3333740234375, "dt": 7084, "prevDt": 13120}

And my time value is updated with some latency, date mode works perfeclty.

My code :

           <DatePicker
            mode="time"
            selected={ heureDebutEvenement ? heureDebutEvenement : null }
            options={{
              backgroundColor: '#F4F4F4',
              mainColor: '#F5C11D',
              borderColor: 'rgba(122, 146, 165, 0.1)',
            }}
            onTimeChange={date => setHeureDebutEvenement(date)} />