react-native-week-view
react-native-week-view copied to clipboard
Add PinchGestureHandler
It would be great to have an option to set PinchGestureHandler. For example we could set the amount of day(s) displayed using this event handler.
Thanks @rdewolff ! This would be really nice. I have also thought of this for the amount of hours vertically
We can definitely try to do this, but I'm not sure how smooth the animation would be, in terms of re-rendering the size of the events, the lines, etc (i.e. we may need some efficiency improvements)
Only way to know is to test 😎 Vertical pinch would change the amount of hours displayed, and horizontal pinch would change amount of days displayed.
First (very early) version for the vertical pinch:
https://user-images.githubusercontent.com/20805451/181384685-dd884e90-2853-4cc8-b038-ca1bd7311e63.mp4
Ah that's great. I had always thought this would be a nice addition to the lib.
@pdpino @rdewolff releasing pinch gestures anytime soon? is there any branch or fork I can try?
Looking forward to this as well
I implemented the vertical pinch:
The UI is a bit laggy, we can fix that later.
I will send a PR as soon as we resolve #306. In the meantime check this branch