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 there a way to set a component as an initValue? #124

Open
dereknahman opened this issue Oct 23, 2019 · 2 comments
Open

Is there a way to set a component as an initValue? #124

dereknahman opened this issue Oct 23, 2019 · 2 comments

Comments

@dereknahman
Copy link

Hello,

I'd love to know if I can set an imported component as an initValue/whether there is property that allows for the user to press a component to trigger the modal.

Thank you!
K

@peacechen
Copy link
Owner

The visible prop controls whether the modal is displayed. Your component could set that value when pressed.
https://github.com/peacechen/react-native-modal-selector#props

@Seanmclem
Copy link

@peacechen how do you hide the actual button while showing another? It would be nice to have a prop like initValue that is also like, currentValue

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