hiddentao / react-native-modal-filter-picker

Cross-platform modal picker for React Native which supports keyword filtering, custom rendering, etc
MIT License
104 stars 74 forks source link

Add an icon/image to each dropdown #45

Closed SauravBaid closed 4 years ago

SauravBaid commented 4 years ago

It's not a bug, just a feature suggestion. Is it possible to add an icon to each element in the dropdown? If it's already possible, can you guide me on where to look?

SauravBaid commented 4 years ago

A workaround I found was passing code in the label. Below is an example of the same.

let options = {
key: Key, label: <>

{Title}
                <Image
                    source={src}
                    style={{ width: 30, height: 30,}}
                />
            </>
    }