Skip to content

Commit a82149b

Browse files
committed
avoid passing columnWrapperStyle when numberOfColumns is 1 (#3103)
1 parent 3d3b903 commit a82149b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/gridList/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function GridList<T = any>(props: GridListProps<T>) {
4242
/* NOTE: Using style with contentContainerStyle because of RN issue with a flatlist nested in another flatlist
4343
losing their contentContainerStyle */
4444
style={listStyle}
45-
columnWrapperStyle={listColumnWrapperStyle}
45+
columnWrapperStyle={numberOfColumns > 1 ? listColumnWrapperStyle : undefined}
4646
contentContainerStyle={listContentStyle}
4747
renderItem={_renderItem}
4848
numColumns={numberOfColumns}

0 commit comments

Comments
 (0)