import React from "react"; import { View, Text, StyleSheet, ScrollView } from "react-native"; import { Ionicons, MaterialIcons } from "@expo/vector-icons"; // Importing icons import { useNavigation } from "@react-navigation/native"; import BottomNav from "../../Navigation/BottomNav"; const NotifikasiScreen = () => { const navigation = useNavigation(); const currentDate = new Date(); const formattedDate = `${currentDate.toLocaleDateString()} ${currentDate.toLocaleTimeString()}`; return ( {/* Back Button */} NOTIFIKASI {/* Notification 1: New Report */} Ada laporan baru! Tim kami sedang meninjau pengaduan sampah terbaru. Terima kasih atas partisipasi Anda! {formattedDate} {/* Notification 2: New Trash Pickup Location */} TPS baru telah ditambahkan! Sekarang Anda bisa menemukan lebih banyak lokasi pembuangan sampah terdekat di EcoMap. {formattedDate} {/* Notification 3: Duplicate Example */} TPS baru telah ditambahkan! Sekarang Anda bisa menemukan lebih banyak lokasi pembuangan sampah terdekat di EcoMap. {formattedDate} {/* Notification 4: Another Example */} TPS baru telah ditambahkan! Sekarang Anda bisa menemukan lebih banyak lokasi pembuangan sampah terdekat di EcoMap. {formattedDate} {/* Bottom Navigation */} {" "} {/* Pastikan tag View ditutup dengan benar */} ); }; const styles = StyleSheet.create({ container: { flex: 1, // Flex untuk menutupi seluruh layar backgroundColor: "#f9f9f9", paddingHorizontal: 20, paddingTop: 20, }, scrollContainer: { flex: 1, // Agar ScrollView mengisi ruang yang tersisa }, backButtonContainer: { flexDirection: "row", alignItems: "center", marginBottom: 20, }, backButton: { flexDirection: "row", alignItems: "center", }, title: { fontSize: 22, fontWeight: "bold", color: "#333", marginLeft: 10, marginBottom: 20, marginTop: 40, }, notification: { flexDirection: "row", alignItems: "center", backgroundColor: "#fff", padding: 15, marginBottom: 15, borderRadius: 8, borderWidth: 1, borderColor: "#ddd", }, notificationText: { marginLeft: 15, flex: 1, }, notificationTitle: { fontSize: 16, fontWeight: "bold", color: "#333", }, notificationDescription: { fontSize: 14, color: "#555", }, notificationDate: { fontSize: 12, color: "#888", // Lighter color for date marginTop: 5, }, }); export default NotifikasiScreen;