react-native-picker-select icon indicating copy to clipboard operation
react-native-picker-select copied to clipboard

pickerProps numberOfLines dont work

Open IlanZ93 opened this issue 3 years ago • 0 comments

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 avatar Jul 07 '22 11:07 IlanZ93