The right-most dropdown arrow is invisible for picker rendered with the code below
<Picker
mode="dropdown"
style={{backgroundColor: 'beige'}}
selectedValue={this.state.language}
onValueChange={(lang) => this.setState({language: lang})}>
<Picker.Item label="Java" value="java" />
<Picker.Item label="JavaScript" value="js" />
</Picker>
I agree, why there is no arrow?
+1
When style is provided the triangle disappears. Looking for a way to keep the triangle while styling it.
+1
+1
+1
+1
Is there any solution to that already?
just remove the background color for the picker.
That works, but I was trying to make the dropdown arrow to appear and have the same color as the text. But when I set color to the picker, the text changed its color, but not the arrow
I solved it by setting the background color to white, and place it inside a parent view after that i added icone to the view just next to the picker with absolute position above the picker like right:10. And this gave me what you looking for
If you wrap the picker in a View with a background color, it works fine:
<View style={{backgroundColor: '#FFF'}}>
<Picker ... />
</View>
Hi there! This issue is being closed because it has been inactive for a while. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. Either way, we're automatically closing issues after a period of inactivity. Please do not take it personally!
If you think this issue should definitely remain open, please let us know. The following information is helpful when it comes to determining if the issue should be re-opened:
If you would like to work on a patch to fix the issue, contributions are very welcome! Read through the contribution guide, and feel free to hop into #react-native if you need help planning your contribution.
@nrathi works fine but this issue is still there.
It means you can not set backgroundColor in Picker
it worked by simply wrapping your picker in a view, then adding a background to the view
How i can change drop down icon color of picker
I have the same problem. Does anyone know how to change the color of the dropdown icon?
Here's a way to change the dropdown icon/carrot color @manojbhardwaj @CristianeMayara,
In styles.xml...
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:colorControlNormal">#FFFFFF</item>
</style>
</resources>
Most helpful comment
If you wrap the picker in a View with a background color, it works fine: