Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Vasault opened this issue May 19, 2020 · 4 comments
Open

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

Vasault opened this issue May 19, 2020 · 4 comments

Comments

@Vasault
Copy link

Vasault commented May 19, 2020

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

@donni106
Copy link

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?

@Vasault
Copy link
Author

Vasault commented Jun 22, 2020

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?

@donni106
Copy link

Yes, we try that, as discussed here: #251
Currently I have problems contacting @siemiatj, but there are updates in the pipeline.
Are you interested in contributing to this project @Vasault?

@Kishanjvaghela
Copy link

Kishanjvaghela commented Oct 26, 2020

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} />

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants