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

Panel freezes with dynamic FlatList #60

Open
saransh-malik opened this issue Feb 3, 2021 · 2 comments
Open

Panel freezes with dynamic FlatList #60

saransh-malik opened this issue Feb 3, 2021 · 2 comments

Comments

@saransh-malik
Copy link

Current Behavior

  • So I am using the library with componentType specified as FlatList, but my flatlist has props that are dynamic in nature, like we have a search bar to filter the list and thus the list can change frequently. The issue is lets say if the list had 20 items and after search just 1 remains, the panel freezes completely, you cannot drag and also since the list has no scroll left nothing would happen and there is no way to get out of the screen.

Expected Behavior

The panel should just behave normally and automatically adjust with change in content.

How to reproduce

Just use a flatlist and then change the list items dynamically and you would encounter the issue.

Your Environment

version
Platform (Android, iOS or both)
react-native-scroll-bottom-sheet 0.7.0
react-native 0.63.0
react-native-gesture-handler 1.6.1
react-native-reanimated 1.9.0
@saransh-malik
Copy link
Author

@rgommezz It would be very helpful if you get a chance to point me out in the right direction of what could cause this issue. Thank you in advance

@zuhairnaqi
Copy link

In my case, the app is getting crash. when dynamic content is being loaded

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

2 participants