-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Picker has been extracted from react-native core #3114
Comments
Also if you import picker from @react-native-community/picker yourself , then you get an error on app startup and the app won't start: There is a thread here: react-native-picker/picker#15 Please update your source to use community picker. |
I do need this too. |
ERROR Warning: Picker has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'. See https://github.com/react-native-community/react-native-picker what should be workaround for this ? |
Any updates on this issue?? |
Desperately waiting for this too here. |
@akhil-geekyants @sankhadeeproy007 @SupriyaKalghatgi @shivrajkumar |
Stop spamming. Either submit a PR solving this or wait for it. |
is this solved? |
I have the same problem |
I have the same problem too |
1 similar comment
I have the same problem too |
I also have this issue. Please fix it thanks. |
I have this problem too. I don't use picker in somewhere but I got this error. |
It's already solved with #3230, let's wait for a new version published |
It's solved but not published on NPM. |
I think it updated. I install @react-native-community/picker package and I am not getting this error anymore. |
@uyarhamit nope, you're not right =) expected is to install only "native-base" and haven't error |
Same issue here:
And I using: When will the new version of native base be published in npm with the correction of this import from Picker? It seems that @alexandrtovmach has questioned this in another thread (#3230) some time ago, and so far they haven't responded. |
Here is the way I found to temporarily solve the problem. It is obviously not the best way, but it was the one I found at the time. In the files:
Changed this: import { Picker } from 'react-native'; And since I'm not using Picker on my project and I need to release a new version urgently, I made a palliative change to the following files:
I commented part of the code where the "_reactNative.Picker" function was referenced and assigns the empty value ('') instead. Using the package https://github.com/ds300/patch-package, I patched this temporary solution. Please, if anyone has a decent solution to this problem, share it with us. |
Will be fixed with #3230 |
This is a temporary fix using patch-package and @react-native-community/picker until new release appears. It works for native-base@2.13.14
Add
Note: If you are using other version of native-base, you need to do necessary changes manually inside |
@tanmoythander thank you for making this fix easy to apply! I never should have used Native Base in the first place, but until I can rip it out, your fix has allowed me to live another day. Thanks! |
Okey, i'm solved this problem by comments above, all changes have in my fork https://github.com/spaceboom73/NativeBase |
@spaceboom73 Thank you, but it's overhead to use your fork in case that is already solved by #3230 and landed to |
I changed react-native-community/datetimepicker version from 2.4.0 to 3.0.9 "@react-native-community/datetimepicker": "^3.0.9" We can assume the old version will get error |
I faced this issue after upgrading my react-native project to the latest version. I solved it by updating my dependencies to the latest versions and the error disappeared. |
@AhmedAbuelenin thank you for sharing - what dependencies have you updated? |
WHAT IS THE UPDATE?? so many issues with expo and react native that they just leave us hanging with breaking changes. So tired of it. |
Warning: Picker has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/picker' instead of 'react-native'. See https://github.com/react-native-community/react-native-picker
The text was updated successfully, but these errors were encountered: