react-native-scroll-bottom-sheet icon indicating copy to clipboard operation
react-native-scroll-bottom-sheet copied to clipboard

Panel freezes with dynamic FlatList

Open saransh-malik opened this issue 4 years ago • 2 comments

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 avatar Feb 03 '21 13:02 saransh-malik

@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

saransh-malik avatar Feb 12 '21 18:02 saransh-malik

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

zuhairnaqi avatar Aug 30 '21 11:08 zuhairnaqi