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

php - Cannot override Laravel Spark authentication with own implementation -

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

What is happening when Matlab is starting a "parallel pool"? -