diff --git a/app/(tabs)/home.tsx b/app/(tabs)/home.tsx index 3c21ac4..548b86c 100644 --- a/app/(tabs)/home.tsx +++ b/app/(tabs)/home.tsx @@ -62,24 +62,12 @@ export default function HomeScreen() { - - - - - - - - + diff --git a/components/FeatureCard.tsx b/components/FeatureCard.tsx index 2f76abd..b5e8ad2 100644 --- a/components/FeatureCard.tsx +++ b/components/FeatureCard.tsx @@ -1,23 +1,23 @@ import React from 'react'; -import { View, Text, StyleSheet } from 'react-native'; +import { View, Text, StyleSheet, Image, ImageSourcePropType } from 'react-native'; import Colors from '@/constants/Colors'; -import { FontAwesome } from '@expo/vector-icons'; import i18n from '@/i18n'; type FeatureCardProps = { title: string; description: string; - isNew?: boolean; + badgeText?: string; + image: ImageSourcePropType; }; -export default function FeatureCard({ title, description, isNew = false }: FeatureCardProps) { +export default function FeatureCard({ title, description, badgeText, image }: FeatureCardProps) { const colorScheme = 'dark'; // Assuming a dark theme return ( - {isNew && ( + {badgeText && ( - {i18n.t('newExperience')} + {badgeText} )} @@ -25,7 +25,7 @@ export default function FeatureCard({ title, description, isNew = false }: Featu {title} {description} - + ); @@ -65,4 +65,9 @@ const styles = StyleSheet.create({ color: Colors.dark.textSecondary, marginTop: 5, }, + image: { + width: 100, + height: 100, + borderRadius: 50, + } });