Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions shared/common-adapters/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type {LegendListRef, Props} from './list.shared'
const DesktopList = function List<T>({ref, ...p}: Props<T>) {
const {empty, ...listProps} = useListProps(p as Props<T>)
const {style} = p
if (empty) return null
if (empty && !p.ListHeaderComponent && !p.ListFooterComponent) return null

return (
<LegendListWeb
Expand All @@ -32,7 +32,7 @@ const DesktopList = function List<T>({ref, ...p}: Props<T>) {

const NativeList = function List<T>({ref, ...p}: Props<T>) {
const {empty, ...listProps} = useListProps(p as Props<T>)
if (empty) return null
if (empty && !p.ListHeaderComponent && !p.ListFooterComponent) return null

return (
<View style={styles.outerView}>
Expand Down