Open CharlotteRdn opened 3 years ago
You can pass a function that returns JSX to the prop renderBase
@CharlotteRdn you need to set fontWeight: '500' to itemTextStyle
You can change selected item's style by using the "propsExtractor" key. Check package flow for "propsExtractor" set at items "Button" in the dropdown list;
react-native-material-dropdown >> src/component/ >> dropdown >> index.js react-native-material-dropdown >> src/component/ >> item >> index.js
For example the style key in next code will change selected item to red.
propsExtractor={(item, index) => { return { style: { backgroundColor: item.value === "Week" ? "red" : "transparent" } } } }
Can I change the selected item style ? I mean get it bold and underlined (I just found selectedItemColor )