react-native-scroll-bottom-sheet
react-native-scroll-bottom-sheet copied to clipboard
Panel freezes with dynamic FlatList
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 |
@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
In my case, the app is getting crash. when dynamic content is being loaded