[Question] - How to change selected style for Picker.Item
See original GitHub issueHey 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:
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:
- Created 5 years ago
- Comments:8 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perfect @SupriyaKalghatgi, thanks for your availability and help.
I’m trying to change the modal background style “it’s white by default”, how can I do it “android”?