Android Style
Hello, I followed the readme and tried to use this https://stackoverflow.com/questions/38921492/how-to-style-the-standard-react-native-android-picker/39141949#39141949.
But I wasn't successful in giving style on android. I was checking the library, and there is a way to pass style to the items but it seems that it is not working linking the two libraries used.
Do you have any example of how to put in bol the selected item in android?
Thanks
You can style the selected item on Android with the activeItemStyle prop. All the others can be styled with the dropdownItemStyle prop.
eg,
dropdownItemStyle={{color: 'blue', fontFamily: 'MyFont-Italic'}}
activeItemStyle={{color: 'red', fontFamily: 'MyFont-Bold'}}
You should probably use a StyleSheet rather than inline styles like those, but you get the idea :-)
(Note that, at time of writing, these two props have the wrong types on them (ViewStyle rather than ViewStyle & TextStyle) so you might need to add a TS-ignore comment to stop Typescript from complaining)