Hi how are you? I am having a problem with the picker (only in android). In Iphone, i dont have any problem.
When i select an item, in android doesn’t update the text in the combobox (but the object is selected ok).
I attach the code:
<View style={[Styles.PickerSelect, { width: “70%” }]}>
<Picker
headerBackButtonText="Atras"
iosHeader="Seleccionar"
selectedValue={this.state.articulo}
placeholder={this.state.articulo}
onValueChange={this.getDatosLineas.bind(this)}
>
{this.state.articulos == null
? null
: this.state.articulos.map((item, i) => {
return (
<Picker.Item
key={i}
value={i}
label={item.nom_articulo}
/>
);
})}
</Picker>
</View>
I attach the photo of the example:
In 1- When i enter to the section, i have the picker with this text and value.
In 2- I select the picker, and i select another item (for example “ORUJO DE UVAS BLANCAS”)
In 3- In android, the text isn’t be updated. But the object is the selected…
I repeat, in ios i dont have this problem.
- Expo SDK: 36.0.0
Thanks!