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

Module '"react-native-picker-select"' has no exported member 'defaultStyles' #431

Open mkizesov opened 3 years ago

mkizesov commented 3 years ago

Describe the bug
Import error for "defaultStyles":

Module '"react-native-picker-select"' has no exported member 'defaultStyles'. Did you mean to use 'import defaultStyles from "react-native-picker-select"' instead?
ts(2614)

To Reproduce
Steps to reproduce the behavior:

Add this import to ts/tsx file: import { defaultStyles } from 'react-native-picker-select';

Expected behavior
According to README that's how we should import "defaultStyles" from the library.

Screenshots

Screenshot 2021-04-08 at 12 51 45

Additional details

Reproduction and/or code sample
https://snack.expo.io/AgnhXbXXT

misaelriojasftf commented 3 years ago

you can check & use my pr

npm i lawnstarter/react-native-picker-select#pull/454/head

hope this helps you! ☕☕