picker icon indicating copy to clipboard operation
picker copied to clipboard

background color is no applying for picker item in dark theme

Open ims7inc opened this issue 3 years ago • 1 comments

<item name="android:spinnerItemStyle">@style/SpinnerItem</item>
<item name="android:spinnerDropDownItemStyle">@style/SpinnerDropDownItem</item>
<style name="SpinnerItem" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:textColor">@color/alert_text</item>
    <item name="android:background">@color/alert_background</item>
</style>
<style name="SpinnerDropDownItem" parent="Theme.AppCompat.Light.NoActionBar">
    <item name="android:textColor">@color/alert_text</item>
    <item name="android:background">@color/alert_background</item>
</style>

color is applying but background color is not applying after upgrading to 2.4.1 version

ims7inc avatar Oct 10 '22 04:10 ims7inc

I've added a pull request that should hopefully fix this (#453).

For the moment try adding a color property to your style tag for the Picker.Item like below:

<Picker.Item color="#fff" style={{ backgroundColor: "#000", color: "#fff", }} key={option.text} label={option.text} value={option.value} />

SWederell avatar Oct 14 '22 10:10 SWederell