native-base-docs icon indicating copy to clipboard operation
native-base-docs copied to clipboard

Native base long list picker values oon back sometime returns only 10 items in list

Open RupamShaw opened this issue 4 years ago • 0 comments

"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>```

RupamShaw avatar May 31 '21 02:05 RupamShaw