lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.74k stars 497 forks source link

pickerProps numberOfLines dont work #484

Open IlanZ93 opened 2 years ago

IlanZ93 commented 2 years ago

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

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