android - React Native detect if a component is dragged into another component -


i need detect if component a's position within component b when pan gesture (drag) on released.

however, position onpanresponderrelease's gesture.movey measured respect entire screen, whereas position returned a's onlayoutis measured respect parent view.

so i'd need know parent view's current height reconcile differences. there better way this?

use nativeevent.locationx , nativeevent.locationy instead of movex , movey , relative position parent.

related documentation


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -