I'm currently using the List.Accordion
component by react native paper and when being selected on IOS the entire List.Accordio
n component gets highlighted in white but on Android it instead gets highlighted with a dark shade and I'm not sure why. Could someone help?
Here is the current code for the component:
<List.Accordion
title='Advanced Options'
titleStyle={{ color: 'white', fontSize: 19, fontWeight: 'bold' }}
onPress={() => {
setTimeout(() => {
scrollViewRef.current.scrollToEnd({ animated: true });
}, 50);
}}
theme={{ colors: { text: 'white'} }}
style={{ backgroundColor: Colors.theme, paddingHorizontal: 12 }}
>
The List.Accordion
component is currently styled with a dark blue background (making the white highlight quite obvious) and the onPress
is in no way changing the style of the component, simply just scrolling the screen downwards to reveal the List
items.