msand / zoomable-svg

Pinch to pan-n-zoom react-native-svg components using a render prop.
38 stars 14 forks source link

Issue with draw event panHandelers #15

Open cchalfan1 opened 4 years ago

cchalfan1 commented 4 years ago

Hello,

Thanks for building this good and simple package.

There are two things I am looking to do with my react-native app.

First, I would like my Svg Rect to have static borders, so that the Rect is always at least as big as the max width of the Svg View. There could be a built in way to do this already, but since there is not much documentation it's taking a while to figure it out just with the source code.

Second, I need elements on my Svg to be clickable, while also using a pinch zoom. For example, user pinch zooms a rectangle, taps to place a piece, then zooms back out. All with a seamless flow. I see that this is nearly achievable with the "Drawing Example", but I don't want the user to need to toggle on and off all the time - bad UX.

I'm open to fixing these with a PR, but it would be helpful to have some direction.

Any recommendations?

cchalfan1 commented 4 years ago

I was able to solve the constraints issue. I could make a PR for it, but this repo doesn't seem too active.