React-native-calendars: Horizontal scroll in Calendarlist calendarWidth

Created on 10 Feb 2019  路  5Comments  路  Source: wix/react-native-calendars

Horizontal scroll in Calendarlist but not properly render when i'm set calendarWidth
// Enable horizontal scrolling, default = false
horizontal={true}
// Enable paging on horizontal, default = false
pagingEnabled={true}
// Set custom calendarWidth.
calendarWidth={300} <= Not rendering properly
/>
screenshot-2019-02-11_10 00 18 429
screenshot-2019-02-11_10 00 21 831
screenshot-2019-02-11_10 00 25 224

Most helpful comment

try to add style prop:

<CalendarList
  style={{
    width,
    overflow: 'hidden',
  }}
  horizontal={true}
  pagingEnabled={true}
  calendarWidth={width}
/>

All 5 comments

try to add style prop:

<CalendarList
  style={{
    width,
    overflow: 'hidden',
  }}
  horizontal={true}
  pagingEnabled={true}
  calendarWidth={width}
/>

Works Good but i want to display like this
calendar
Calendar only!

Oh, I got it. You want to centred month with paging, but paging or centering doesn't work? Can you give more information (GIF would be nice)

btw, I'm not a contributor in this project, but my experience tells me that if you want exactly the same design (with swipe gestures and fancy animations for both Android/iOS), there is some issues.

Everything works good i want that design means center aligned calendar previous and next months exactly red marked area
new_calendar

Original Gif

ezgif com-optimize

@Jeeva111 have you managed to accomplish this? I have a similar issue I want to tackle. I need to find a way to sync months header with the calendar swipe

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kewin1807 picture kewin1807  路  4Comments

henrikra picture henrikra  路  3Comments

anishtr4 picture anishtr4  路  3Comments

dobiedad picture dobiedad  路  4Comments

microwin168 picture microwin168  路  4Comments