import type { ReactElement } from 'react';
import { Tabs } from 'expo-router';
import { Icon } from '@/components';
import type { IconName } from '@/components';
import { useTheme } from '@/theme';
// Open on Chats, not the leftmost (Contacts) tab.
export const unstable_settings = {
initialRouteName: 'index',
};
const tabIcon =
(name: IconName) =>
({ color, size }: { color: string; size: number }): ReactElement => (
);
// Persistent bottom navigation for the authenticated area: Contacts · Chats ·
// Settings. Chat/profile/group and modals live in the parent stack so they
// cover the tab bar when opened.
export default function TabsLayout(): ReactElement {
const { colors } = useTheme();
return (
);
}