Closed satya-imaginea closed 9 months ago
Yea same problem, probably need to make a fork of this project to suit it for your needs...
Or have you found another solution?
Yea same problem, probably need to make a fork of this project to suit it for your needs...
Or have you found another solution?
We have hidden the up&down arrows as they are optional :)
that's how the picker functions natively on the web - which this project tries to emulate
Yea same problem, probably need to make a fork of this project to suit it for your needs... Or have you found another solution?
We have hidden the up&down arrows as they are optional :)
how to hidden it? i tried some props but not succeed
Yea same problem, probably need to make a fork of this project to suit it for your needs... Or have you found another solution?
We have hidden the up&down arrows as they are optional :)
how to hidden it? i tried some props but not succeed
ok i found it
style={{ inputIOS: styles.inputIOS, chevronUp: { display: "none" }, chevronDown: { display: "none" }, done: { color: Colors.colorLevel51 } }}
https://github.com/lawnstarter/react-native-picker-select/blob/ca6488c2eef5c776a8071400c8b7987712d43397/src/index.js#L179
If onDownArrow/onUpArrow prop was provided, the
this.onDownArrow
will be called which closes the selector options instead of moving the selected option up/down. This is happening as we are calling thethis.togglePicker(false, <onDown/UPArrow>)
when we click on the Up/down arrows of InputAccessoryView. 'done' action is working fine as its purpose is to close the selection widget.