Open ludgerey opened 2 months ago
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.
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