Nativebase: Picker inside Item on android not working, running well on ios

Created on 11 Apr 2017  路  6Comments  路  Source: GeekyAnts/NativeBase

I've issue to use Picker inside Item
screen shot 2017-04-11 at 12 09 32

Running well on IOS
screen shot 2017-04-11 at 12 03 04

But picker not working on Android
screen shot 2017-04-11 at 12 02 58

When i moves Picker to outside Item, works on IOS and Android. Thanks.

awaiting response

Most helpful comment

@yovierayz You will need to apply some width to the picker.
Something like this
<Picker style={{ width:(Platform.OS === 'ios') ? undefined : 120 }} >
Let me know if it works

All 6 comments

@yovierayz You will need to apply some width to the picker.
Something like this
<Picker style={{ width:(Platform.OS === 'ios') ? undefined : 120 }} >
Let me know if it works

It works after adding width to the picker.

@shivrajkumar ok it's works, tq :)

This needs to be in the docs, right?

This should be in the docs, 100%. @shivrajkumar Would you accept a PR?

I think that it would be better: ... <Picker style={{flex: 1}} ...

Note: Tested only on android

Was this page helpful?
0 / 5 - 0 ratings