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 -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -