How to change the background of List.Accordion
See original GitHub issueThis is my code:
<List.Section title="Accordions" style={{ backgroundColor: 'white' }}>
<List.Accordion
style={{ backgroundColor: 'white', marginBottom: 20 }}
title="Uncontrolled Accordion"
left={props => <List.Icon {...props} icon="folder" />}>
<List.Item title="First item" />
<List.Item title="Second item" />
</List.Accordion>
<List.Accordion
style={{ backgroundColor: 'white', marginBottom: 20 }}
title="Controlled Accordion"
left={props => <List.Icon {...props} icon="folder" />}
expanded={expanded}
onPress={handlePress}>
<List.Item title="First item" />
<List.Item title="Second item" />
</List.Accordion>
</List.Section>
Please help me.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
react native paper list accordion - Stack Overflow
I am having a problem with react-native paper list accordion it is not working on android! I mean the list is showing but...
Read more >Accordion · Bootstrap v5.0
This is the first item's accordion body. It is shown by default, until the collapse plugin adds the appropriate classes that we use...
Read more >List.Accordion - Expo Snack
https://callstack.github.io/react-native-paper/list-accordion.html.
Read more >[Share] Accordion Block: Useful code - Squarespace Forum
tuanphan · #1. Change Dividers Color · #2. Change Arrows Color · #3. Add icons before Accordion Titles · #4. Different Color for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can achieve it by passing a
theme
prop intoList.Accordion
with customized background color, in the following way:I advice to use a spacer to space the lists, for OP and not to use the margin because it will push down the drop down options too.