react-native-image-zoom icon indicating copy to clipboard operation
react-native-image-zoom copied to clipboard

Get the current scale/zoom level?

Open mccahan opened this issue 10 months ago • 9 comments

Is there a good way to be able to read the current scale whenever I need to? I don't see it on the ref, and I do see that there's a scale = useSharedValue() in the instance but can't find a way to get at it. I have a few places where I would like to be able to read out the current scale (and probably the x and y offsets), so I can save them for later.

I have a PR in for adding the scale to the onPinchEnd callback as a potential fix for one of my specific issues, but putting this note in in case there's a good way to accomplish this now that I'm missing.

mccahan avatar Mar 24 '24 19:03 mccahan

I also need this feature, @likashefqet any chance you can merge and release this?

ghmendonca avatar Apr 10 '24 11:04 ghmendonca

I could use this as well

CrowsVeldt avatar Apr 12 '24 14:04 CrowsVeldt

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.

github-actions[bot] avatar Jun 11 '24 18:06 github-actions[bot]

I too really want this feature. Any way we can achieve this?

2xSamurai avatar Jun 12 '24 06:06 2xSamurai

I need it too please

mbenassarou avatar Jun 21 '24 13:06 mbenassarou

I also need this feature

InkAndSteel avatar Jul 09 '24 10:07 InkAndSteel

yeah this is a dealbreaker

frozencap avatar Jul 16 '24 16:07 frozencap

I need this too

diego-laya avatar Aug 08 '24 15:08 diego-laya

same here. (this comment doesn't help but i also want it and don't want to use another library since most others haven't been updated in a long time).

Fexxix avatar Aug 09 '24 20:08 Fexxix

🎉 Version 4.1.0 of @likashefqet/react-native-image-zoom has been released with some exciting new features! 🚀

Feel free to update to the latest version to explore these additions. If you have any more suggestions or ideas for improvements, please feel free to share.

Thank you! 🙌

likashefqet avatar Aug 25 '24 21:08 likashefqet