native-base-docs
native-base-docs copied to clipboard
Native base long list picker values oon back sometime returns only 10 items in list
"native-base": "^2.15.2"
Sometimes picker list returns only 10 items in list ...If having long list like 70 items.
and sometimes on back in picker list without selecting anything and comesback even returning 10 items.
<Item key={12} inlineLabel>
<Label>Category{-categoryLength}</Label>
<Item key={13} picker>
<Picker
name="categories"
mode="dropdown"
iosHeader="Category Sel"
iosIcon={<Icon name="arrow-down" />}
// style={{color: '#fff'}}
color="#fff"
placeholder="Select product type"
placeholderStyle={{color: '#fff'}}
placeholderIconColor="#007aff"
selectedValue={categories}
itemStyle={styles.text}
// eslint-disable-next-line no-shadow
onValueChange={(value) =>
this.handleInputChange('categories', value)
}>
{kindCategoryList.map((i) => {
return (
<Picker.Item
key={i.id}
label={`${i.title}`}
value={`${i.id}`}
/>
)
})}
</Picker>
</Item>```