It seems like <List.Accordion /> expanded title cannot be styled and it is based on theme color. I am not sure if this is a design choice or just hasn't been an option thus far.
It would be nice if the accordion title color when expanded, could be passed in vs. based on theme.colors.primary.
color: expanded ? theme.colors.primary : titleColor,
https://callstack.github.io/react-native-paper/list-accordion.html
None.
I can contribute this enhancement if needed. I just wanted to open an issue before a PR. Thank you!
@timothystewart6 you can pass theme prop to List.Accordion to customize it.
theme={{ colors: { primary: '#fff' }}}
Thank you so much! I didn't think of overriding the theme prop for this one instance. I will close this. Thanks again!
Just beware it overrides it for children too, so you have to revert back to primary for children (if that's your intent).
Most helpful comment
@timothystewart6 you can pass theme prop to List.Accordion to customize it.