import React from "react";
import {
View,
Text,
Image,
StyleSheet,
TouchableOpacity,
ScrollView,
} from "react-native";
import { useNavigation } from "@react-navigation/native";
import { Ionicons } from "@expo/vector-icons";
export default function InformasiPribadi() {
const navigation = useNavigation();
return (
{/* Header */}
navigation.goBack()}
style={styles.backIcon}
>
INFORMASI PRIBADI
{/* Profile */}
Dina Dwi Anisa
Pahlawan Lingkungan
{/* Info Card */}
{/* Edit Button */}
navigation.navigate("EditInformasiPribadi")}
>
EDIT
);
}
const InfoRow = ({ label, value }) => (
{label}
{value}
);
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
},
header: {
backgroundColor: "#fff",
paddingVertical: 20,
paddingHorizontal: 16,
flexDirection: "row",
alignItems: "center",
marginTop: 40,
},
backIcon: {
marginRight: 16,
},
headerText: {
fontSize: 20,
fontWeight: "bold",
color: "#000",
marginTop: 0,
},
content: {
padding: 20,
},
profileContainer: {
alignItems: "center",
marginBottom: 20,
},
profileImage: {
width: 100,
height: 100,
borderRadius: 60,
borderWidth: 2,
borderColor: "#2e7d32",
},
profileName: {
fontSize: 18,
fontWeight: "bold",
marginTop: 10,
},
profileRole: {
fontSize: 14,
color: "#2e7d32",
marginTop: 2,
},
card: {
backgroundColor: "#fff",
borderRadius: 12,
padding: 16,
elevation: 3,
shadowColor: "#000",
shadowOpacity: 0.1,
shadowOffset: { width: 0, height: 2 },
shadowRadius: 5,
marginBottom: 20,
},
infoRow: {
marginBottom: 15,
},
infoLabel: {
fontSize: 13,
color: "#888",
marginBottom: 4,
},
infoValue: {
fontSize: 15,
fontWeight: "600",
color: "#333",
},
link: {
color: "#1976d2",
fontWeight: "500",
},
editButton: {
marginTop: 20,
backgroundColor: "#2f4f2f",
padding: 15,
borderRadius: 10,
alignItems: "center",
},
editButtonText: {
color: "#fff",
fontSize: 16,
fontWeight: "bold",
},
});