Skip to content

Commit

Permalink
change aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
walmat committed Aug 27, 2024
1 parent b13d453 commit e2473e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { StyleSheet } from 'react-native';

const { width: SCREEN_WIDTH } = deviceUtils.dimensions;
const CARD_WIDTH = SCREEN_WIDTH - HORIZONTAL_PADDING * 2;
const IMAGE_ASPECT_RATIO = 16 / 9;
const CARD_HEIGHT = 238;

type DiscoverFeaturedResultsCardProps = {
handlePress: () => void;
Expand All @@ -32,7 +32,7 @@ export const DiscoverFeaturedResultsCard = ({ handlePress, featuredResult }: Dis
const styles = StyleSheet.create({
image: {
width: CARD_WIDTH,
height: CARD_WIDTH / IMAGE_ASPECT_RATIO,
height: CARD_HEIGHT,
borderRadius: 12,
},
});

0 comments on commit e2473e7

Please sign in to comment.