react-native-multi-selectbox icon indicating copy to clipboard operation
react-native-multi-selectbox copied to clipboard

Hide dropdown icon to do not toggle & callback function to know if is editable or no

Open bmartinezg opened this issue 2 years ago • 0 comments

Motivation 😇 The first problem I had was to can't remove the toggle icon when the user is not in edit mode. If in the custom component prop to toggle receive an empty container and the user press on that area the toggle gonna trigger.

The second was to do not have a way to know if the options list is displaying or not.

Actions💻 To fix the first issue, I added a prop that allows to do not display anything. To fix the second, I added a prop that calls a callback function to get the current status of the toggle (if the options lists are being displayed or not).

Thanks for your attention,

Bruno.

bmartinezg avatar Aug 10 '21 12:08 bmartinezg