forked from DuDigital/react-native-zoomable-view
-
Notifications
You must be signed in to change notification settings - Fork 61
Open
Description
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>
Metadata
Metadata
Assignees
Labels
No labels