NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

[Question] - How to change selected style for Picker.Item

Open ngouass opened this issue 8 years ago • 8 comments

Hey guys, I'm currently trying to change the color of the selected item for the Pick component. I manage to make it work partially by updating selected style properties for ListItem after ejecting native-base-theme. I'm having this result: capture d ecran 2018-08-22 a 07 32 25

I have this as selected style for ListItem:

const selectedStyle = {
    "NativeBase.Text": {
      color: "green",
    },
    "NativeBase.Icon": {
      color: "green",
    },
  };

But it's only working for the text. What should I do to have the right icon color set to green ?

Thanks

ngouass avatar Aug 22 '18 05:08 ngouass

Can i know why are you customizing style for ListItem selected?

SupriyaKalghatgi avatar Aug 22 '18 05:08 SupriyaKalghatgi

Because I want the UI to look consistent based on the 3 colors I have choosen for my app.

ngouass avatar Aug 22 '18 05:08 ngouass

The tick mark is radio button so you can change radio color in theme/variables

SupriyaKalghatgi avatar Aug 22 '18 05:08 SupriyaKalghatgi

Perfect @SupriyaKalghatgi, thanks for your availability and help.

ngouass avatar Aug 22 '18 05:08 ngouass

@SupriyaKalghatgi Is it possible to change Radio style only for Picker item?

indapublic avatar Oct 18 '18 14:10 indapublic

@SupriyaKalghatgi is there a way where I can remove the check icon? perhaps change it to a different icon?

bjtang28 avatar Jul 03 '19 10:07 bjtang28

Can't know where to edit it, would you please help

MedafPayDevelopers avatar Mar 29 '20 15:03 MedafPayDevelopers

I'm trying to change the modal background style "it's white by default", how can I do it "android"?

anastely avatar Apr 13 '20 11:04 anastely