Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RupamShaw opened this issue May 31, 2021 · 0 comments

Comments

@RupamShaw
Copy link

"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>```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant