wix / react-native-calendars

React Native Calendar Components 🗓️ 📆
MIT License
9.42k stars 2.92k forks source link

How about using useNativeDriver for the Animation? #2362

Open dmk3141618 opened 8 months ago

dmk3141618 commented 8 months ago

How about using useNativeDriver for the Animation?

The reaction speed seems too slow when moving with a scroll in ExpandableCalendar. I wonder if this is because useNativeDriver is not being used, or if it's due to outputting too much data at once. I would appreciate some adjustments in this area, like applying throttle, runAfterInteraction, or control of PanGesture to the timing of scrolling and displaying on the screen.

aquinq commented 7 months ago

@dmk3141618 It does not seem possible with the current implementation of ExpandableCalendar because the height property is not supported for native animations https://github.com/facebook/react-native/issues/31071 If you change useNativeDriver: true locally and try to expand the calendar, you'll get the following error message

Capture d’écran 2024-01-17 à 18 30 35
stale[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.