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 Icon prop type #529

Closed noterB closed 5 months ago

noterB commented 7 months ago

478

LouisKraemer commented 7 months ago

Do we have an ETA on a new release containing this work?

lucasoliveiraw00 commented 5 months ago

Hello, is there an estimate on when this pull request will be released in a version?

lucasoliveiraw00 commented 5 months ago

@lfkwtz

pelivan commented 5 months ago

I found a great workaround.

It is possible to create helper file, in my case i called it iconHelper.tsx and create a function that will return JSX like this

export const getPickerIcon = () => {
  return <ChevronDownIcon />;
};

After that you can import it to component where picker is used and use it like

   <RNPickerSelect
                    Icon={getPickerIcon}