react-nativeexporeact-native-navigationreact-native-paperexpo-router

How to stop displaying New file as an menu list in expo router?


I am working on expo router trying to develop android application. During development I Observe that if I am creating any new file it is showing in menu, like if I am using tab navigation using expo router and created a new file which is showing as menu in bottom tab. Similarly in drawer menu also.

Can anyone help me how I can fix that issue ?

However maybe it is default behaviour of expo router but I don't want to show each file in menu.


Solution

  • That is exactly the default behaviour of expo router. The app folder is supposed to contain Only files corresponding to screens. For all other files, create them outside ‘app’ folder. For example, you might have /src/app, /src/components, and so on.