wix / react-native-calendars

React Native Calendar Components 🗓️ 📆
MIT License
9.59k stars 2.96k forks source link

FIX: Enable nestedScrollEnabled prop for Android api level 21+ #2537

Open av3n93rz opened 1 month ago

av3n93rz commented 1 month ago

Adds a new prop to Timeline to enable nested scrolling. I was trying to add the pull to refresh feature to a wrapper ScrollView on my calendar and noticed that I can not enable nested scrolling for the android devices. This creates an unwanted behaviour where you are unable to swip downwards (scroll up) without triggering the pull to refresh feature. Without adding this prop to the Timeline's ScrollView the only way to scroll up is to start scrolling down then changing direction while still touching the screen.

Current behaviour: https://github.com/user-attachments/assets/1e365832-0ac7-413a-991f-a148f1dc5726

Expected behaviour: https://github.com/user-attachments/assets/56f8be5a-3d3f-4ec0-8e12-36628abed9da