本机选择器未显示数组项。你能帮忙吗?
这是我的代码:
<Picker
selectedValue={this.state.category}
onValueChange={itemValue => this.setState({category: itemValue})}>
{this.props.categoryList.map((item,index) =>
<Picker.Item label={item.lookUpName} value={item.lookUpId} key={index}>)
)}
</Picker>