Skip to content

Commit c419edd

Browse files
authored
Fix issue with destructing hitSlop from undefined (#2837)
1 parent ee7dd7b commit c419edd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/components/gridListItem/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ class GridListItem extends Component<GridListItemProps> {
161161
imageProps,
162162
alignToStart,
163163
containerStyle,
164-
containerProps,
164+
containerProps = {},
165165
renderCustomItem,
166166
children,
167167
title,
@@ -189,7 +189,6 @@ class GridListItem extends Component<GridListItemProps> {
189189
const TextContainer = overlayText ? View : React.Fragment;
190190
const textContainerStyle = overlayText ? {style: [styles.overlayText, overlayTextContainerStyle]} : null;
191191
const imageBorderRadius = imageProps?.borderRadius;
192-
// @ts-ignore hitSlop issues
193192
const {hitSlop, ...otherContainerProps} = containerProps; // eslint-disable-line
194193

195194
return (

0 commit comments

Comments
 (0)