In each directory in the app directory of Expo SDK 52, i now have a file _layout.tsx in each directory with te following content:
import { Stack } from 'expo-router';
import { useEffect } from 'react';
export default function RootLayout() {
const [loaded] = useFonts({
SpaceMono: require('../assets/fonts/Urbanist Regular.ttf'),
//SpaceMono: require('../assets/fonts/SpaceMono-Regular.ttf'),
});
return (
<Stack>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="add_store_product" />
<Stack.Screen name="customer_details" />
<Stack.Screen name="customer" />
<Stack.Screen name="store_product" />
</Stack>
);
}
Those files in the stack are in the same directory of the _layout.tsx file. So I expect the intellisense to list those files for me whenever I use router.push() but they are not listed and besides, when I make changes to file names or even directory(rename a file or directory) inside app directory, the changes to the filenames or directories are not reflected in the intellisense.
What could be the error? Could it be Expo or Npm caching or whatever?
Thank you