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

python 2.7 - Given three nested dictionaries, sort the top two nested dictionaries from a value in the innermost dictionary? -

angular - DownloadURL return null in below code -