Skip to content

Commit 3f3fee3

Browse files
committed
conditionally render placeholder
1 parent f3b7df2 commit 3f3fee3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/DraggableFlatList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,9 @@ function DraggableFlatListInner<T>(props: DraggableFlatListProps<T>) {
397397
props.onScrollOffsetChange?.(offset);
398398
}}
399399
/>
400-
<PlaceholderItem renderPlaceholder={props.renderPlaceholder} />
400+
{!!props.renderPlaceholder && (
401+
<PlaceholderItem renderPlaceholder={props.renderPlaceholder} />
402+
)}
401403
<AnimatedFlatList
402404
{...props}
403405
CellRendererComponent={CellRendererComponent}

0 commit comments

Comments
 (0)