picker icon indicating copy to clipboard operation
picker copied to clipboard

It's really hard to figure out styling

Open korayerdem89 opened this issue 1 year ago • 1 comments

I think docs should be updated to be more clear how we can style the picker container, item vs. Its really, really hard to make it

korayerdem89 avatar Aug 18 '23 15:08 korayerdem89

Here is the styling I was able to use for basic single inline selection:

<Picker
  style={{
    flex: 1,
    fontSize: 23,
    height: 48,
    justifyContent: "center",
    overflow: "hidden",
  }}
  selectedValue={selectedLanguage}
  numberOfLines={1}
  onValueChange={(itemValue, itemIndex) =>
    setSelectedLanguage(itemValue)
  }
>
  <Picker.Item style={styles.pickerItem} label="EN" value="EN" />
  <Picker.Item label="ES" value="ES" />
  <Picker.Item label="DE" value="DE" />
  <Picker.Item label="IT" value="IT" />
  <Picker.Item label="FR" value="FR" />
</Picker>

speedhawk21 avatar Dec 26 '23 06:12 speedhawk21