-
Notifications
You must be signed in to change notification settings - Fork 501
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
Programmatically focus picker #82
Comments
It's apparently undocumented, but have you tried |
@sidraval let me know if that solves it so i can close this out |
@lfkwtz My project wrapped up, so I can't test |
Just to confirm, yes |
Calling this.select.current.togglePicker();
<RNPickerSelect
ref={this.select}
onValueChange={fn}
items={[]}
/> |
This seems to work on iOS but not android. |
see link above ^ #22 |
Outside of the component calling class InputSelect {
private picker;
render() {
return (
<RNPickerSelect ref={e => this.picker = e} ... />
)
}
open() { this.picker.togglePicker() }
} |
|
togglePicker() not working on Android. |
#424 (comment) |
Is your feature request related to a problem? Please describe.
I have a form with several fields, a couple text inputs followed by a picker. I'd like to use the 'Next' button on the iOS/Android keyboard to programmatically focus the picker.
Describe the solution you'd like
A method that programmatically focuses the picker.
The text was updated successfully, but these errors were encountered: