We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Picker component with MULTI mode needs whole options to render their proper labels within text field
Picker
MULTI
mode
"MULTI"
[{ label: 'Hello', value: '1' }, { label: 'World', value: '2' }]
['1']
[{ label: 'Hello', value: '1' }]
value
The expected behaviour would be to follow the expected type for the value
See above
import { Picker as RNUIPicker } from 'react-native-ui-lib'; const options = [ { value: '1', label: 'One' }, { value: '2', label: 'Two' }, { value: '3', label: 'Three' }, ]; <Picker mode={Picker.modes.MULTI} value={['1', '2']} > {options.map((option) => { return ( <Picker.Item key={option.value} value={option.value} label={option.label} /> ); })} </Picker> // Versus <Picker mode={Picker.modes.MULTI} value={[{ value: '1', label: 'One' }, { value: '2', label: 'Two' }]} > {options.map((option) => { return ( <Picker.Item key={option.value} value={option.value} label={option.label} /> ); })} </Picker>
—
0.72.3
7.7.0
The text was updated successfully, but these errors were encountered:
Hi @mb8z This issue has been fixed Please try a recent version
Sorry, something went wrong.
No branches or pull requests
Description
Picker
component withMULTI
mode needs whole options to render their proper labels within text fieldRelated to
Steps to reproduce
Picker
component, withmode
set to"MULTI"
.[{ label: 'Hello', value: '1' }, { label: 'World', value: '2' }]
)['1']
as thePicker
s value – no labels renders in the text field[{ label: 'Hello', value: '1' }]
as thevalue
– the labels in the text field are now rendered correctlyExpected behavior
The expected behaviour would be to follow the expected type for the
value
Actual behavior
See above
Code snippe
Screenshots/Video
—
Environment
0.72.3
7.7.0
Affected platforms
The text was updated successfully, but these errors were encountered: