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

fix: correct types for `PickerStyle` interface #528

Closed stevebutler2210 closed 8 months ago

stevebutler2210 commented 8 months ago

The previous typings for the PickerStyle interface were restrictive, preventing valid passing of arrays of styles to each of the attributes.

Updating these to use StyleProp<XStyle> ensures valid arrays of style objects are accepted.

Fixes: https://github.com/lawnstarter/react-native-picker-select/issues/527