You'll need to create a _layout.tsx
file inside each subdirectory. Inside this _layout.tsx
file, you'll need to define the structure for the navigation:
...
<Stack>
<Stack.Screen name="screen1" />
<Stack.Screen name="screen2" />
...
</Stack>
...