Closed reggi closed 3 years ago
Same error. What did you do?
Same error here with Typescript
After wasting hours, I found the solution. Just add that into your package.json
"resolutions": {
"@types/react": "17.0.2",
"@types/react-dom": "17.0.2"
},
Instead of importing like this:
import Picker from '@react-native-picker/picker
Change the import to:
import { Picker } from '@react-native-picker/picker
Without the curly braces it expects Picker
to be the default export: https://stackoverflow.com/a/36796281/4279006.
I am getting this typescirpt error :(