3

Anyone have already use PickerIOS component ?

On Android, it's all good : when i press, my Picker is showing. But on IOS, my component is alway showing and not centered in the device.

No more information on the documentation :/

My code :

<PickerIOS
  selectedValue={selectedValue}
  onValueChange={(itemValue, itemIndex) => onValueChange(itemValue)}
  style={InputStyles.picker}
>
  {items.map((item, index) =>
    <PickerIOS.Item
      key={index}
      label={item.label}
      value={item.value}
    />
  )}
</PickerIOS>

Screenshot :

enter image description here

Anyone have idea ?

s-leg3ndz
  • 3,260
  • 10
  • 32
  • 60

1 Answers1

1

I found a good answer here:

React Native ios picker is always open

It seems there is no way to customize the picker on iOS. Thats just the way it appears.

But they give some good pointers in that link. Hope that helps!

ShaneG
  • 1,498
  • 7
  • 16