Centering PickerIOS in real life

I'm trying to focus on PickerIOS, but I probably don't have the basic logic for Picker, because I just want its width to be full-screen.

I can get along with the iPhone 4s / 5s, but when I launch it on the iPhone 6, Picker seems to be on the left, with some space on the right side.

I try to use alignItem: "center" with a wrapper around the collector, but that just makes it disappear. I also tried alignSelf, but it still doesn't work.

I thought Picker had a width in full screen by default, or did it adapt according to the length of the elements?

Do I have to place it in Flexbox to get it in the center with full screen width?

enter image description here

enter image description here

mask1: {
height:120,
overflow:'hidden',
justifyContent:'space-around',
marginTop:50
}
+4
1

, PickerIOSItem NavigatorIOS. UIExplorer . , .

+2

Source: https://habr.com/ru/post/1610086/


All Articles