Skip to main content

Troubleshooting

How can I get selected item data?

You should use the onSelect callback to get the selected item's data

Select doesn't work inside Modal from react-native

You need to wrap the code inside the Modal in a SelectModalProvider to ensure proper functionality.

...
<Modal>
<SelectModalProvider>
<Select ... />
</SelectModalProvider>
</Modal>
...

Options list position is not correct

  • If you are using react-native-modal and Modal is wrapped in SelectModalProvider please check if Modal has applied margin: 0
  • Check if you are using react-native-safe-area-context and, if so, check if you have used SafeAreaProvider in your app's root.
  • If the above points do not resolve the issue, please report it on GitHub.