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.
Comments
Post a Comment