rili-live / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
42 stars 54 forks source link

RN 0.66 "Picker" Error #28

Closed ozturkilgim closed 2 years ago

ozturkilgim commented 2 years ago

RN 0.66 Picker module

❌This module doesn't support RN 0.66 and occurs this error:

Invariant Violation: Picker has been removed from React Native. It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'. See https://github.com/react-native-picker/picker

I have spent 4 hours to realize that react-native-phone-input imports Picker from "react-native". Because of that I couldn't use it after I upgraded my project to last version of RN 0.66. 🤮

rililive commented 2 years ago

False. Did you check the changelog of the version you have installed? https://github.com/rili-live/react-native-phone-input/releases/tag/v1.2.0