Closed anchetaWern closed 2 years ago
Works now. There's been a mix up with the existing packages I'm using. Basically I just needed to install both react-native-picker-select
and the dependency which is @react-native-picker/picker
Thanks, the documentation should be a little clearer, I thought I only had to install @react-native-picker/picker
. Since I have react 18, I had to legacy peer deps install and it told me to install react-native-gesture-handler
and react-native-safe-area-context
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
npm install @react-native-picker/picker
npx pod-install
Expected behavior
It should work.
Screenshots
Add screenshots to help explain your problem. If screenshots aren't applicable to this issue, write "n/a".
Additional details
Reproduction and/or code sample
Provide a link to a reproduction of this issue on https://snack.expo.io or an explanation why you can not. Not including a snack link will result in a significant delay in our ability to address this issue.
I can't because the sample code in the existing expo uses the non-react native package in the example: https://snack.expo.dev/@lfkwtz/react-native-picker-select
Docs said to install this package for React Native:
@react-native-picker/picker
But the sample Snack is using this package:react-native-picker-select
which doesn't work when I tried. Installing them both causes a conflict in the naming.