react-native-modal-dropdown icon indicating copy to clipboard operation
react-native-modal-dropdown copied to clipboard

is it possible to add the icon on the right of the default value?

Open Vasault opened this issue 4 years ago • 4 comments

what i mean is, i red somewhere around here that you can wrap the component and inside put a button to mimic the dropdown icon, but the thing is, this is replacing the onPress behaviour, instead of just being a single icon to differentiate between my textinputs and my dropdowns

Vasault avatar May 19 '20 22:05 Vasault

Hi @Vasault, can you please create this issue in the up-to-date fork of this package here: https://github.com/siemiatj/react-native-modal-dropdown/issues?

donni106 avatar Jun 22 '20 08:06 donni106

Hi @Vasault, can you please create this issue in the up-to-date fork of this package here: https://github.com/siemiatj/react-native-modal-dropdown/issues?

will that be the main fork?

Vasault avatar Jun 22 '20 15:06 Vasault

Yes, we try that, as discussed here: https://github.com/sohobloo/react-native-modal-dropdown/issues/251 Currently I have problems contacting @siemiatj, but there are updates in the pipeline. Are you interested in contributing to this project @Vasault?

donni106 avatar Jun 22 '20 16:06 donni106

Try this https://github.com/Kishanjvaghela/react-native-modal-dropdown

Added support for renderRightComponent.

Now you can render anything in right side including icon as well.

<ModalDropdown
            isFullWidth
            textStyle={{ flex: 1 }}
            renderRightComponent={() => (
              <Image />
            )}
            {...rest} />

Kishanjvaghela avatar Oct 26 '20 12:10 Kishanjvaghela