You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I solve this problem by deleting this props line: initialScrollIndex={saveScrollPosition ? selectedIndex : -1} in function __renderDropdown(). It seems that it's a bug in component FlatList, I saw similar issues in react-native's repository: https://github.com/facebook/react-native/issues/44544.
I experienced the exact same issue about an hour ago. What worked for me was adding saveScrollPosition={false}. Before discovering this workaround, I also noticed that dragging one of the remaining options helped restore the list. Hopefully, one of these solutions works for you as well! :)
Options disappear when clicked once.
Steps to reproduce:
-> First selected option disappears. Continues until there is only one option left.
It also has a weird spacing on the bottom.
Tested on android and ios.
Expo Snack: https://snack.expo.dev/@ley-syniotec/react-native-modal-dropdown-disappearing-options
The text was updated successfully, but these errors were encountered: