/** * Profile group layout — provides a dedicated native Stack for the * /(app)/profile/* routes so that `router.back()` returns to the screen * that pushed us here (post detail, chat, feed tab, etc.) instead of * falling through to the root. * * The parent (app)/_layout.tsx uses AnimatedSlot → , which is * stack-less. Nesting a here gives profile routes proper back * history without affecting the outer tabs. */ import React from 'react'; import { Stack } from 'expo-router'; export default function ProfileLayout() { return ( ); }