79411230

Date: 2025-02-04 09:59:42
Score: 3.5
Natty:
Report link

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

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): What could be
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Raul Hernandez