Disable the whole folder from router in Expo Router
T
Tomáš Dohnal
I really like how this is done in Next.js where any folder prefixed by an underscore (like _components or _utils) is ignored from the file based routing.
This enables you to create components/utils etc. that are only relevant to that given route in those subfolders.
Would love to see this feature in Expo router as well
c
candyman138
I think move the folder to
src
will be the best solution by far.Brent Vatne
hi there! you should put those directories outside of the app directory in that case.
c
candyman138
Brent Vatne Actually I don't want to put outside since there might be too many folders in project root folder.
Julius
Brent Vatne not a nextjs fanboy but they implemented it for a reason... _components makes absolutly sense in the app folder for components that are just used once and belong to a specific route. is makes the repo much cleaner than a crowded components folder outside the app directory