Skip to content

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

@RupamShaw

Description

@RupamShaw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions