Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnySizeDragSortableView not rendering anything #170

Open
GNUGradyn opened this issue Jul 10, 2023 · 3 comments
Open

AnySizeDragSortableView not rendering anything #170

GNUGradyn opened this issue Jul 10, 2023 · 3 comments

Comments

@GNUGradyn
Copy link

Hello. I followed the README trying to setup a drag & droppable list with elements of varied sizes. I could not get this to work. the render item method was called for every item, but nothing was rendered on screen. I have created and linked a minimum reproducible example.

Thanks in advance

https://github.com/GNUGradyn/ReactNativeDragSortMre

@GNUGradyn
Copy link
Author

Interestingly, it seems like the component is rendered, just invisible
image
image

@GNUGradyn
Copy link
Author

Been chipping away at this all day. I've got the issue all mapped out but not quite sure what the solution is. In AnySizeDragView, the draggable items are housed in a scroll view. This scroll view has a flex property of 1. This scroll view is housed in a View with no defined height. The result is the scroll view has a height of 0.

@GNUGradyn
Copy link
Author

GNUGradyn commented Jul 13, 2023

Upon further testing, I do not think the scroll view needs to be flex: 1. I'm not sure why this was done - I will simply remove it unless maintainer can justify its existence

GNUGradyn added a commit to GNUGradyn/react-native-drag-sort that referenced this issue Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant