BugiDev / react-native-calendar-strip

Easy to use and visually stunning calendar component for React Native.
MIT License
939 stars 327 forks source link

paging={true}? #215

Closed jawwad22 closed 3 years ago

jawwad22 commented 4 years ago

Hi,Need to enable paging, when scrollable=true in calendar, I want to make swipeable but as paging

peacechen commented 4 years ago

Would you provide more details on what you need? Do you want to swipe to change weeks, but not have the days scroll? That would be a significant change in design and behavior. Please submit a PR which adds that feature.

jawwad22 commented 4 years ago

hi, logic is simple when i give scrollable={true}, its scroll perfectly, now what i want is that, it should scroll in a SET of 7 days, in one swipe,7 previous or next week days show,

peacechen commented 4 years ago

Thanks for the explanation. That could be done by grouping the days into units of 7 and passing them to the RecyclerListView. It's not a trivial change and it be a while until I can work on it. If you would like to give it a try, fork this repo and submit a PR.

jawwad22 commented 4 years ago

ohk, ill give it a try, i hope i could achieved it,

jawwad22 commented 4 years ago

Hi, man unable to achieve it, can you take a look and help me??

matthewwo commented 3 years ago

this would be very nice indeed, i'm also interested in this feature.

matthewwo commented 3 years ago

it seems like recyclerlistview has a property for PagingEnabled. I've tried adding it in and it seem to work out of the box.

https://github.com/Flipkart/recyclerlistview/issues/240

peacechen commented 3 years ago

Thanks @prankymat for the news about that prop. Would you mind adding a new prop scrollerPaging that gets passed through to RLV as its paging prop? That new prop will need to be added to the Readme and TS definitions.

matthewwo commented 3 years ago

just realized that pagingEnabled will cause some layout issue, instead using snapToInterval with decelerationRate seems more promising.

peacechen commented 3 years ago

Released in 2.1.4