react-native-picker-select icon indicating copy to clipboard operation
react-native-picker-select copied to clipboard

InputAccessoryView - Up and Down arrows are not working

Open satya-imaginea opened this issue 3 years ago • 2 comments

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 the this.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.

satya-imaginea avatar May 06 '22 07:05 satya-imaginea

Yea same problem, probably need to make a fork of this project to suit it for your needs...

Or have you found another solution?

Nsquik avatar Jun 02 '22 16:06 Nsquik

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 :)

satya-imaginea avatar Jun 03 '22 03:06 satya-imaginea

that's how the picker functions natively on the web - which this project tries to emulate

lfkwtz avatar Nov 16 '23 20:11 lfkwtz

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

hotaryuzaki avatar Jan 10 '24 11:01 hotaryuzaki

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

hotaryuzaki avatar Jan 10 '24 12:01 hotaryuzaki