import React from 'react'; import { Text, View, TouchableOpacity, ScrollView, Switch } from 'react-native'; import AsyncStorage from '@react-native-async-storage/async-storage'; import { useNavigation } from '@react-navigation/native'; import Icon from 'react-native-vector-icons/Ionicons'; import { getStyles } from './profile.styles'; import { useTheme } from '../../theme'; export const ProfileScreen = () => { const navigation = useNavigation(); const { theme: colors, isDark, toggleTheme } = useTheme(); const styles = getStyles(colors); const handleLogout = async () => { try { await AsyncStorage.removeItem('userToken'); await AsyncStorage.removeItem('tenancyName'); } catch (e) { console.error(e); } navigation.reset({ index: 0, routes: [{ name: 'AuthStack' }], // root-level stack name stays as-is }); }; return ( {/* Profile Header */} A Workspace Administrator Owner / Administrator {/* Account Details list */} Workspace Details Tenancy convex-crm-tenant Email admin@convex.com Status Active {/* Settings list */} Preferences Dark Mode Push Notifications Security & Privacy {/* Sign Out Button */} Sign Out from Workspace ); };