lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.76k stars 499 forks source link

Transparent items text on web from iOS #370

Closed marinimau closed 3 years ago

marinimau commented 4 years ago

2020-10-02 15 59 02 Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Transparent items text on web from iOS

Describe the solution you'd like
A clear and concise description of what you want to happen.

The item text color on web (only from iPad OS or iOS, all browsers) is the same as the background (or the font color is transparent), the picker works: I can scroll/press and the selection is right.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

I've tried to specify the textColor using this code inside the stylesheet passed as style={} at the component: size, family etc work but not the single-item text color.

inputWeb: {
        fontSize: 16,
        paddingTop: 12,
        paddingBottom: 12,
        paddingLeft: 30,
        paddingRight: 30,
        borderWidth: 0,
        textColor: (darkMode() ? Colors.darkMode_basic : Colors.basic),
        backgroundColor: (darkMode() ? Colors.darkMode_basicElevation : Colors.basicElevation),
        fontFamily: SYSTEM_FONT_STACK,
        color: (darkMode() ? Colors.darkMode_basic : Colors.basic),
    },

Additional details
Add any other details or screenshots about the feature request here.

marinimau commented 3 years ago

Solved updating react-native-community/picker