react-native-modal-selector
react-native-modal-selector copied to clipboard
Is there a way to set a component as an initValue?
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
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
@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