question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ngouasscommented, Aug 22, 2018

Perfect @SupriyaKalghatgi, thanks for your availability and help.

0reactions
anastelycommented, Apr 13, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Styling React Native Picker - Stack Overflow
Therefore, for styling the Picker items on Android, like changing the fontFamily can be done only using Native Android styles, for now.
Read more >
Ask - How to change the color style in Picker? · Issue #338
Open /android/app/src/main/res/values/styles.xml · Add the following line <item name="android:colorControlNormal">#0B536E</item> · Change the ...
Read more >
Picker - React Native
On Android, specifies how to display the selection items when the user taps on the picker: 'dialog': Show a modal dialog. This is...
Read more >
React Native Picker Component - GeeksforGeeks
It is used to select a particular item from multiple given options. ... It shows the selected value. style: It basically styles the...
Read more >
Change title and selected date colors in Android datepicker ...
You can create a styles.xml , add custom android:datePickerDialogTheme in it like following code. I add all of properties that can be changed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found