react-native-picker / picker

Picker is a cross-platform UI component for selecting an item from a list of options.
MIT License
1.45k stars 273 forks source link

the problem of selectionColor #553

Open Viennacacao opened 3 months ago

Viennacacao commented 3 months ago

Hello, I want to change the color of my number when it is selected, but I can't change it using selectionColor. The following is my code: `eturn (

setSelectedHour(itemValue)} selectionColor={processColor('#e83b30')}> {[...Array(12)].map((_, index) => ( ))} ` In addition, I also want to change the color of the gray rectangular selection box in the middle. How should I change it? image
gufengpiaoyi commented 3 months ago

same issue

tctrautman commented 3 months ago

This appears to be a regression -- you can get it working by falling back to 2.4.9.

h/t @AdePhil https://github.com/react-native-picker/picker/issues/294#issuecomment-1871253377

mayone-du commented 2 months ago

Downgrading to v2.4.9 didn't resolve the issue either. If possible, could you provide sample code that works? Thank you!

Alternatively, are there any other solutions available?