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

Picker drawer not showing any item on iOS

Open Bawenang opened this issue 9 months ago • 3 comments

Describe the bug
Picker drawer is showing but the item is empty

To Reproduce
Steps to reproduce the behavior:

  1. Run the app
  2. Click on RNPickerSelect Component
  3. Picker drawer shows up but it is empty

Expected behavior
The picker drawers should've rendered the items.

Screenshots

Image

Additional details

  • Device: iPhone 16 Pro Simulator
  • OS: iOS 18
  • react-native-picker-select version: 9.3.1
  • react-native version: 0.76.6
  • expo sdk version: 52.0.25

Reproduction and/or code sample

enum TaskPriority {
  LOW = 'LOW',
  MEDIUM = 'MEDIUM',
  HIGH = 'HIGH',
}

<RNPickerSelect
  textInputProps={{ pointerEvents: 'none' }}
  onValueChange={(value) => setPriority(value)}
  items={
    [
      { label: 'LOW', value: TaskPriority.LOW },
      { label: 'MEDIUM', value: TaskPriority.MEDIUM },
      { label: 'HIGH', value: TaskPriority.HIGH },
    ]
  }
  style={pickerSelectStyles}
  placeholder={{ label: "Select priority", value: null }}
/>

Bawenang avatar Feb 02 '25 01:02 Bawenang