I am styling an Image
component with flexbox to be in the center of the screen which works pretty well. Now I want a second Image
component to be displayed directly on the top of the first one. The second image is using absolute positioning. Currently I'm just guessing pixels so that it fits, but of course this is not accurate and way too much maintainability effort.
I am pretty much looking for the React Native equivalent of jQuery's .offset()
. Is there such a thing and if there isn't what's the best way to achieve this?