'Why does List.Accordion get highlighted in white when being selected on IOS?
I'm currently using the List.Accordion component by react native paper and when being selected on IOS the entire List.Accordion 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.
Solution 1:[1]
I think you can use text-decoration style property to customize it.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Kunarajah Nirojan |
