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

pickerProps numberOfLines dont work #484

Open
IlanZ93 opened this issue Jul 7, 2022 · 0 comments
Open

pickerProps numberOfLines dont work #484

IlanZ93 opened this issue Jul 7, 2022 · 0 comments

Comments

@IlanZ93
Copy link

IlanZ93 commented Jul 7, 2022

Describe the bug

I use the props :
pickerProps={{numberOfLines: 10}}

But my items are still on 1 line with ellipsis.

To Reproduce

Steps to reproduce the behavior:

<RNPickerSelect
            pickerProps={{numberOfLines: 10}}
            doneText="Valider"
            placeholder={{}}
            items={lstTreeCondPart.map(c => {
              var info = {
                label: c.text,
                value: c.idTreeCondPart,
                key: c.idTreeCondPart,
              };
              return info;
            })}
            value={selectedValue ? selectedValue : defaultValue}
            onValueChange={itemValue => {
              if (Platform.OS === 'ios') {
                setSelectedValue(itemValue);
              } else {
                setSelectedValue(itemValue);
                onValueChange({
                  idTreeCondPart: itemValue,
                  idGroupCondPart,
                });
              }
            }}
            onClose={() => {
              onValueChange({
                idTreeCondPart: selectedValue,
                idGroupCondPart,
              });
            }}
            style={{
              inputIOS: {
                ...form.select,
              },
              inputAndroid: {
                ...form.select,
              },
              iconContainer: {
                ...form.selectIconContainer,
              },
            }}
            Icon={() => {
              return (
                <Icon
                  style={{
                    transform: [{rotate: '270deg'}],
                  }}
                  name="bold-left"
                  size={20}
                  color={SkinColors.typoGrey}
                />
              );
            }}
          />

Expected behavior

Items should be on multiple lines

Screenshots

image

Additional details

  • OS: Android
  • react-native-picker-select version: 8.0.4
  • react-native version: 0.61.5

Reproduction and/or code sample

Code sample is above, i can't give more and its not needed for this issue.

@IlanZ93 IlanZ93 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 11, 2022
@IlanZ93 IlanZ93 reopened this Jul 11, 2022
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