Skip to content

Commit 65140ab

Browse files
committed
fix: remove pressable styles of gallery items
1 parent f0f8e3e commit 65140ab

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

package/src/components/Attachment/Gallery.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,7 @@ const GalleryThumbnail = ({
327327
});
328328
}
329329
}}
330-
style={({ pressed }) => [
331-
styles.imageContainer,
332-
{
333-
opacity: pressed ? 0.8 : 1,
334-
flex: thumbnail.flex,
335-
},
336-
imageContainer,
337-
]}
330+
style={[styles.imageContainer, { flex: thumbnail.flex }, imageContainer]}
338331
testID={`gallery-${invertedDirections ? 'row' : 'column'}-${colIndex}-item-${rowIndex}`}
339332
{...additionalPressableProps}
340333
>

0 commit comments

Comments
 (0)