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.

Is not possible to change color of selected Picker Item

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
bgbragacommented, Apr 5, 2018

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.

2reactions
MedafPayDeveloperscommented, Mar 29, 2020

i want to change the selected text icon, the tick icon

Read more comments on GitHub >

github_iconTop 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 >

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