peacechen / react-native-modal-selector

A cross-platform (iOS / Android), selector/picker component for React Native that is highly customizable and supports sections.
MIT License
369 stars 129 forks source link

Need to add a drop down icon in default container #145

Open ArjunM26 opened 4 years ago

ArjunM26 commented 4 years ago

Dear support team,

I need to add a drop-down icon at the end of default container, I tried it with the custom select box it is working but I needed to use selected key I can't use the custom select box, I need to use the default style.

Thank you

peacechen commented 4 years ago

This is a community supported library. If there's a feature you need, please submit a PR.

I don't fully understand your use case. Could you pass the selected key to your custom select box? It would pass from ModalSelector to your component (the parent), then to your custom select box. It would help if you posted a code snippet.

jueleto commented 2 years ago

You can embed inside a View and add icon with absolute position, it hides behind the select and gives the feeling that it is part of the component.

image

Result: Captura de pantalla 2022-04-06 a la(s) 11 20 01