lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.74k stars 499 forks source link

App crashes in android - bug #404

Closed ssthil closed 3 years ago

ssthil commented 3 years ago

Describe the bug
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 RNPickerSelect@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:461777:36

To Reproduce
Steps to reproduce the behavior:

  1. Go to the screen where we have this RNPickerSelect implementation
  2. Then the app crashes immediately
  3. See error: 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 RNPickerSelect@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false:461777:36

Expected behavior
The RNPickerSelect should work fine like in IOS. But for IOS also has the same error.

ExceptionsManager.js:179 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 at RNPickerSelect (http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:458383:36)

Screenshots
App crashes

Additional details

#

MSchmidt commented 3 years ago

It won't solve the warning but you can get around the crash by adding @react-native-picker/picker (https://github.com/react-native-picker/picker) to your project.

ssthil commented 3 years ago

@MSchmidt thanks for your response. But still, there is an error even after I added @react-native-picker/picker Kindly advise, do I need any specific version of @react-native-picker/picker?

lfkwtz commented 3 years ago

need the actual "additional details" for your bug report

SatalBill commented 3 years ago

Still app is crashing. I installed both packages - "@react-native-picker/picker" and "react-native-picker-select". Once I click the picker, app crashes. Why this is happening?

mchamorro7 commented 2 years ago

Same issue here, any solutions?

vuletuanbt commented 2 years ago

Still app is crashing. I installed both packages - "@react-native-picker/picker" and "react-native-picker-select". Once I click the picker, app crashes. Why this is happening?

Same here. Have you resolved it?

mchamorro7 commented 2 years ago

Still app is crashing. I installed both packages - "@react-native-picker/picker" and "react-native-picker-select". Once I click the picker, app crashes. Why this is happening?

Same here. Have you resolved it?

I resolved that issue by upgrading react-native package to 0.64.2

I have this package versions:

vuletuanbt commented 2 years ago

Still app is crashing. I installed both packages - "@react-native-picker/picker" and "react-native-picker-select". Once I click the picker, app crashes. Why this is happening?

Same here. Have you resolved it?

I resolved that issue by upgrading react-native package to 0.64.2

I have this package versions:

  • "react-native-picker-select": "^8.0.4"
  • "@react-native-picker/picker": "^2.1.0"

Thanks, it works on my RN 0.66.3

ezraamos commented 2 years ago

Still app is crashing. I installed both packages - "@react-native-picker/picker" and "react-native-picker-select". Once I click the picker, app crashes. Why this is happening?

have you resolved this?

ParthShrivastav commented 2 years ago

Still facing the same issue after making the above changes

feliciovcm commented 2 years ago

Facing same issue, have tried all solutions above, but the error keeps happening