question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: Picker has been extracted from react-native core

See original GitHub issue

Describe the bug
Importing and using the Picker component causes the following warning:

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

To Reproduce
Steps to reproduce the behavior:

Using "react-native": "^0.62.2" just import import RNPickerSelect from "react-native-picker-select" and render it.

Expected behavior
No warning

Screenshots
n/a

Additional details

  • Device: Android
  • OS: Ubuntu
  • react-native-picker-select version: 7.0.0
  • react-native version: 0.62.2
  • react version: 16.13.1

Reproduction and/or code sample
Example app: https://github.com/AregShahbazian/RNPickerSelectBug

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

1reaction
waterflower124commented, Oct 23, 2020

This module use version 1.6.0 of react-native picker. “@react-native-community/picker”: “1.6.0”, If modify this version to latest version then it will work. In my case the version is 1.8.1.

0reactions
tdinckayacommented, Dec 8, 2021

any update ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Picker has been extracted from react-native core #3114 - GitHub
Warning: Picker has been extracted from react-native core and will be removed in a future release. It can now be installed and imported...
Read more >
Picker has been removed from React Native. It can now be ...
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- ......
Read more >
@react-native-community/picker - npm package | Snyk
The npm package @react-native-community/picker was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed ...
Read more >
fulcro 2021-11-26 | Slack Archive
Picker has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from ......
Read more >
react-native-date-picker null is not an object - You.com | The search ...
ERROR Warning: Picker has been extracted from react-native core and will be removed in a future release. It can now be installed and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found