How to get the top, left position of an Image relative to the entire screen in react native

Viewed 21

How do I get the top and left position of a react native Image relative to the entire screen?

For example, I'm using pan responder that only allows me to keep track of the position of my finger. The "touch" area is this square box and there's a small image within the square box. If the finger touches any part of that box, a small image within the box moves along with the finger and then follow along with it. However, on touch, I want the small image to be right on top of my finger. How do I do that?

0 Answers
Related