nuclearpasta / react-native-drax

A drag-and-drop system for React Native
MIT License
554 stars 68 forks source link

Dragging inside a tab navigator #70

Open ravi-poonia opened 4 years ago

ravi-poonia commented 4 years ago

I'm trying to implement a drag and drop across tabs inside a tab navigator: when the dragAbsolutePosition.x reaches the screen width, I change the tab

But the problem arises when I try to try to drag item from the 2nd tab,

Device width : 360 dragAbsolutePosition.x=518

when I start dragging from the 2nd tab. so it shows up on the right side of the current tab, on the 3rd tab screen

Can I update the offset based on the current tab? Is it something because it's considers the whole tab as a single screen?

lafiosca commented 4 years ago

Could you provide a code example reproducing this behavior?