import React, { useContext } from "react"; import { View, Text, ImageBackground, Image, TouchableOpacity, StyleSheet, Linking, } from "react-native"; import { DrawerContentScrollView, DrawerItemList, } from "@react-navigation/drawer"; import { AuthContext } from "../../context/AuthContext"; import Loader from "../Loader"; import { MaterialIcons } from "@expo/vector-icons"; import { Ionicons } from "@expo/vector-icons"; const CustomDrawer = (props) => { const { logout, isLoading } = useContext(AuthContext); return ( Diligent Software Linking.openURL("mailto:office@dilig.net")} style={styles.footerButton} > Contact Us Sign Out ); }; const styles = StyleSheet.create({ container: { flex: 1, }, drawer: { backgroundColor: "#8200d6", }, backgroundImage: { padding: 20, }, profileImage: { height: 80, width: 80, borderRadius: 40, marginBottom: 10, }, userName: { color: "#fff", fontSize: 18, marginBottom: 5, fontFamily: "poppins-regular", }, drawerItems: { flex: 1, backgroundColor: "#fff", paddingTop: 10, }, footer: { padding: 20, borderTopWidth: 1, borderTopColor: "#ccc", }, footerButton: { paddingVertical: 15, }, buttonContent: { flexDirection: "row", alignItems: "center", }, footerButtonText: { fontSize: 15, marginLeft: 5, fontFamily: "poppins-regular", }, }); export default CustomDrawer;