react-native-week-view icon indicating copy to clipboard operation
react-native-week-view copied to clipboard

Add PinchGestureHandler

Open rdewolff opened this issue 4 years ago • 4 comments
trafficstars

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.

rdewolff avatar Aug 28 '21 21:08 rdewolff

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)

pdpino avatar Aug 29 '21 00:08 pdpino

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.

rdewolff avatar Sep 16 '21 16:09 rdewolff

First (very early) version for the vertical pinch:

https://user-images.githubusercontent.com/20805451/181384685-dd884e90-2853-4cc8-b038-ca1bd7311e63.mp4

pdpino avatar Jul 27 '22 22:07 pdpino

Ah that's great. I had always thought this would be a nice addition to the lib.

rdewolff avatar Jul 28 '22 06:07 rdewolff

@pdpino @rdewolff releasing pinch gestures anytime soon? is there any branch or fork I can try?

harshilJs avatar Dec 05 '22 11:12 harshilJs

Looking forward to this as well

ice-cap0 avatar May 06 '23 18:05 ice-cap0

I implemented the vertical pinch:

2023-05-13-pinch-vertical-frame

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

pdpino avatar May 13 '23 05:05 pdpino