Long list issue: scrollToIndex out of range
Hello, Thank you for this package.
There an error that happens when I have a long list, like countries and there is a selected value down in the list. The error get thrown in these cases:
- When a user types something in the search bar it will throw:
ERROR Invariant Violation: scrollToIndex out of range: item length 0 but minimum is 1 - If I closed the select before it finished scrolling to selected value.
ERROR TypeError: Cannot read property 'scrollToIndex' of null
https://github.com/AdelRedaa97/react-native-select-dropdown/assets/4423561/f416f71e-3592-462b-907a-3c0a33bfc26d
"react-native": "0.73.8",
"react-native-select-dropdown": "^4.0.1"
Same here. I am using "react-native": "0.73.7" and "react-native-select-dropdown": "^4.0.1". You can do a workaround by adding the disableAutoScroll property, hopefully we can have a fix soon.
Same here :(
If i close the modal quickly it does this
I have the same issue. Is there a way to wrap this functionality in a try/catch?