react-native-picker / picker

Picker is a cross-platform UI component for selecting an item from a list of options.
MIT License
1.51k stars 288 forks source link

Selected value not showing on android on production #381

Open Sheleftavor opened 2 years ago

Sheleftavor commented 2 years ago

I am using this picker in my react native expo app and everything works fine when I am running the app on expo go. But when I tried building the app to an apk and installing it on an android phone the selected value is not shown. The picker itself works fine the only problem is the selected value.

My code: ` <Picker selectedValue={this.state.playersInRes} onValueChange={this.handleInput('playersInRes')} style={[styles.Picker, {inputAndroid: { color: 'black' }}]} mode='dropdown' useNativeAndroidPickerStyle={false}

{playersArr.map(num => { return })} `

kellypacker commented 2 years ago

In my instance, the selected value was '...'. It was a layout issue. The selected value was too wide for the space. Although it didn't really look like it. And was only present on production. So it was a bit maddening.

Sheleftavor commented 2 years ago

In my instance its just blank space, no ... or anything. In development on expo go it works and shows the selected value but on production it show blank space. The picker itself works perfectly tho just the selected value is jot showing. I switched to this picker and it works now.

R4DIC4L commented 2 years ago

Still no fix for this issue? I'm experiencing this too on some android phones, both in production and development without Expo.