Hello, thanks for working on this library.
Inside of my ReactNativeZoomableView I have an image, which contains distinct "snapping points." When a user taps the RNZV, I look up the nearest snapping point, and can place an Indicator on that spot with some basic math. So far, so good.
However, also want to position a Menu , which exists as a sibling to the RNZV in the hierarchy, at this "snapped point".
How can I transform an arbitrary point in "image space" to screen / view space? I see offsetX etc, but I seem to be pretty confused because no combination of offset / zoom level / etc seem to produce values that make sense.
<BottomTabNavigator>
<View>
<ReactNativeZoomableView>
<Image/>
<Indicator/>
</ReactNativeZoomableView>
<Menu />
</View>
</BottomTabNavigator>
Hello, thanks for working on this library.
Inside of my
ReactNativeZoomableViewI have an image, which contains distinct "snapping points." When a user taps theRNZV, I look up the nearest snapping point, and can place anIndicatoron that spot with some basic math. So far, so good.However, also want to position a
Menu, which exists as a sibling to theRNZVin the hierarchy, at this "snapped point".How can I transform an arbitrary point in "image space" to screen / view space? I see
offsetXetc, but I seem to be pretty confused because no combination of offset / zoom level / etc seem to produce values that make sense.