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.73k stars 491 forks source link

Move react-native-picker to peer dependencies #523

Closed asenmitrev closed 8 months ago

asenmitrev commented 8 months ago

Problem

On a fresh install and following the readme steps, you end up with 2 versions of @react-native-picker/picker installed. The one that you install yourself (the readme says to) and the version that's listed in the package.json dependencies.

This leads to some bugs from the older version of @react-native-picker/picker bleeding into this component when used with react-native-web. See this example.

Solution

Move @react-native-picker/picker to peerDependencies in package.json. Keep separate install step in readme.