Skip to content

Commit

Permalink
Merge pull request #68 from white-label-loyalty/fix/UAT-111
Browse files Browse the repository at this point in the history
fix: (PointsTile) make image cover image container if full size
  • Loading branch information
iamgraeme authored Jan 15, 2025
2 parents 1a708ed + e45c88e commit 273e2ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/organisms/PointsTile/points-tile-media.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const PointsTileMedia = ({
if (!artworkUrl) return null;

return (
<View
<View
style={styles.imageContainer}
accessible
accessibilityRole="image"
Expand All @@ -28,7 +28,7 @@ export const PointsTileMedia = ({
<Image
source={{ uri: artworkUrl }}
style={styles.image}
resizeMode="contain"
resizeMode={isFullSize ? 'cover' : 'contain'}
accessibilityElementsHidden={true}
importantForAccessibility="no-hide-descendants"
/>
Expand Down

0 comments on commit 273e2ed

Please sign in to comment.