import React from 'react'; import { View, Text, StyleSheet, ImageBackground } from 'react-native'; import Colors from '@/constants/Colors'; import MaterialCommunityIcons from 'react-native-vector-icons/MaterialCommunityIcons'; const prayerTimes = [ { name: 'Al-fajr', time: '04:48 AM', icon: 'weather-sunset-up' }, { name: 'Sunrise', time: '06:20 AM', icon: 'weather-sunny' }, { name: 'Dhohr', time: '01:06 PM', icon: 'weather-partly-cloudy' }, { name: 'Asr', time: '04:50 PM', icon: 'weather-cloudy' }, { name: 'Maghreb', time: '07:51 PM', icon: 'weather-sunset-down' }, { name: 'Isha', time: '09:02 PM', icon: 'weather-night' }, ]; export default function PrayerTimeCard() { const colorScheme = 'dark'; return ( Mashhad, Iran Left on Maghreb prayer 49:44 {prayerTimes.map((prayer, index) => ( {prayer.name} {prayer.time} ))} ); } const styles = StyleSheet.create({ container: { marginVertical: 20, borderRadius: 15, }, overlay: { backgroundColor: 'rgba(0,0,0,0.5)', borderRadius: 15, padding: 20, }, header: { flexDirection: 'row', alignItems: 'center', marginBottom: 20, }, location: { color: Colors.dark.text, marginLeft: 10, }, remainingTimeLabel: { color: Colors.dark.textSecondary, textAlign: 'center', }, remainingTime: { color: Colors.dark.text, fontSize: 48, fontWeight: 'bold', textAlign: 'center', marginVertical: 10, }, prayerTimesContainer: { flexDirection: 'row', justifyContent: 'space-around', marginTop: 20, }, prayerTimeItem: { alignItems: 'center', }, prayerName: { color: Colors.dark.text, marginTop: 5, }, prayerTime: { color: Colors.dark.textSecondary, fontSize: 12, }, });