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

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

Open dereknahman opened this issue 6 years ago • 2 comments

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

dereknahman avatar Oct 23 '19 15:10 dereknahman

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 avatar Oct 23 '19 15:10 peacechen

@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

Seanmclem avatar Jul 03 '21 01:07 Seanmclem