Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the problem of selectionColor #553

Open
Viennacacao opened this issue Mar 21, 2024 · 4 comments
Open

the problem of selectionColor #553

Viennacacao opened this issue Mar 21, 2024 · 4 comments

Comments

@Viennacacao
Copy link

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 ( <View style={styles.container}> <Picker style={[styles.picker, {width: screenWidth / 4.5}]} selectedValue={selectedHour} onValueChange={itemValue => setSelectedHour(itemValue)} selectionColor={processColor('#e83b30')}> {[...Array(12)].map((_, index) => ( <Picker.Item label={${index + 1}} value={${index + 1}} key={index} selectionColor="#e83b3e" /> ))} </Picker>
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
Copy link

same issue

@tctrautman
Copy link

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

h/t @AdePhil #294 (comment)

@mayone-du
Copy link

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?

@rohankeskar19
Copy link

Anyone found any solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants