You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NestableScrollContainer auto scrolls up when NestableDraggableFlatList is not the immediate child #587
Describe the bug
I have a NestableScrollContainer component wrapping multiple NestableDraggableFlatList components. If the NestableDraggableFlatList are not the first descendent (i.e. they are wrapped in a View) then when you press and hold on an item, the screen auto scrolls up.
Platform & Dependencies
Happens on both iOS and Android
Additional context
Here is a demo. You can't really see my touches, but when I tap and hold an Item, I am NOT moving my finger. So the screen should not scroll. But it does.
I think I fixed it by utilizing onDragBegin and onDragEnd. Something like this
<NestableDraggableFlatListdata={data}onDragBegin={index=>{setDisableParentScrollView(true);}}onDragEnd={({ data })=>{setDisableParentScrollView(false);}}
Actually, ignore that. I do use these but I just used multiple NestableScrollContainer comoponents. One for each NestableDraggableFlatList and I moved the other Text and View components to be parents. Like this
@jaaywags Solid workaround! I suppose the only downside is that if you're trying to move an item to a position that is currently off screen, the parent is unable to scroll it into view for us to place it there. Not a huge deal but depends on the use case I suppose. Thanks for sharing!
Activity
maciejewiczow commentedon Aug 24, 2025
Same issue here, any updates on that?
Code-yWilliams commentedon Sep 30, 2025
Same issue here. Were you able to resolve it?
jaaywags commentedon Sep 30, 2025
I think I fixed it by utilizingonDragBeginandonDragEnd. Something like thisActually, ignore that. I do use these but I just used multiple
NestableScrollContainercomoponents. One for eachNestableDraggableFlatListand I moved the otherTextandViewcomponents to be parents. Like thisjaaywags commentedon Sep 30, 2025
@Code-yWilliams I updated my expo snack. Check out the
WorkAroundListOfDraggableItems.jsfile. That works pretty well.Code-yWilliams commentedon Sep 30, 2025
@jaaywags Solid workaround! I suppose the only downside is that if you're trying to move an item to a position that is currently off screen, the parent is unable to scroll it into view for us to place it there. Not a huge deal but depends on the use case I suppose. Thanks for sharing!