Apply proper padding in Android FlatList

This commit is contained in:
Lei Nelissen
2022-05-19 23:05:46 +02:00
parent 8678e3d881
commit 1075e31623

View File

@@ -18,7 +18,7 @@ import ticksToDuration from 'utility/ticksToDuration';
const ICON_SIZE = 16; const ICON_SIZE = 16;
const Container = styled.FlatList<Track>` const Container = styled.FlatList<Track>`
padding: 40px;
`; `;
const Header = styled.View` const Header = styled.View`
@@ -103,6 +103,7 @@ export default function Queue({ header }: Props) {
return ( return (
<Container <Container
contentContainerStyle={{ padding: 40 }}
data={queue} data={queue}
ListHeaderComponent={ ListHeaderComponent={
<> <>