Is not possible to change color of selected Picker Item
See original GitHub issueI checked Picker.Item documentation and source code and apparentely there is not property to change the color of selected item.
I only found a way to change all Picker Items:
<Picker itemTextStyle={{color: '#000000'}
But I think is expected a way to change the selected item color.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Picker.Item color not working in react native
Item with simple color change and it's not working. I've created a RedPickerItem class which wraps Picker. Item with default color set to...
Read more >Choose colors in Adobe Photoshop
To change the foreground color, click the upper color selection box in the toolbox, and then choose a color in the Adobe Color...
Read more >The Color Picker Column
Open the settings by clicking the arrow beside the column's name and then selecting "Column Settings". This will open a pop-up window where...
Read more >Color Palettes and Effects
To return to the Automatic palette and the default color assignments, click Reset in the Edit Colors dialog box. Quantitative Palettes. When you...
Read more >PowerToys Color Picker utility for Windows
Select color · Move the mouse pointer close, but not over the element · Zoom in by scrolling the mouse wheel up (image...
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
I see that is not possible.
What is expected with that issue is implement that, not close. If is not possible to pass “selected style” to Picker, another implement suggestion:
<Picker.Item label=“My Item” value=“My Item” textStyle={{color: ‘#66bdca’}}/>
The is no problem to do that. The work is just get Picker.Item style and pass to <Text>. In that case we as Picker users will control the Picker.Item render to set the right color to right item.
@SupriyaKalghatgi I suggest to keep it open and implement that strategy. It is very simple to implement. If you accept that strategy I could do a PR.
i want to change the selected text icon, the tick icon