From 98a0a4b8ba0692d731f821814dd0ad24dacfda0d Mon Sep 17 00:00:00 2001 From: vsecoder Date: Sat, 18 Apr 2026 20:10:33 +0300 Subject: [PATCH] =?UTF-8?q?fix(nav):=20move=20feed.tsx=20=E2=86=92=20feed/?= =?UTF-8?q?index.tsx=20to=20unblock=20duplicate-route=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit expo-router error: "A navigator cannot contain multiple 'Screen' components with the same name (found duplicate screen named 'feed')". Cause: having both app/(app)/feed.tsx (a file-route) and app/(app)/feed/ (a folder with _layout.tsx) at the same level makes expo-router try to register two routes called "feed". Fix: the folder's _layout.tsx wraps the tab + its sub-routes in a single Stack, so the tab screen becomes feed/index.tsx — the initial screen of that Stack. Back navigation from /feed/[id] and /feed/tag/[tag] now correctly pops to the Feed tab root. No other route references changed (paths like /(app)/feed, /(app)/feed/, /(app)/feed/tag/ still resolve identically). Co-Authored-By: Claude Opus 4.7 (1M context) --- client-app/app/(app)/{feed.tsx => feed/index.tsx} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename client-app/app/(app)/{feed.tsx => feed/index.tsx} (100%) diff --git a/client-app/app/(app)/feed.tsx b/client-app/app/(app)/feed/index.tsx similarity index 100% rename from client-app/app/(app)/feed.tsx rename to client-app/app/(app)/feed/index.tsx