skip to Main Content

I have a react-native project and I’m using expo.

In my project structure I have the sources folder that contain all my sources expect the Screen Folder.

I would like to have this Folder in the sources folder as well.

A good answer please

2

Answers


  1. I apologize if I didn’t fully grasp your question due to the limited description provided, but if you intend to relocate your "app" folder from the root directory to a "src/" directory, you can follow these steps:

    Simply move the "app" folder to the "src" directory within your project.

    Expo’s router is accommodating, and it should be able to recognize the new location without any issues.

    Ensure that you update any TypeScript (ts) aliases or import statements to reflect the new folder structure. This is crucial for maintaining the integrity of your code.

    For more information on working with the Expo Router and handling directory structure changes, you can refer to the official documentation:
    Expo Router Documentation – src Directory https://docs.expo.dev/router/reference/src-directory/

    It should provide additional guidance on this topic.

    Login or Signup to reply.
  2. I understand sir but what I mean is the I want to use the Screen folder to start building my app instead of the App Folder

    There is photo of the app folder [app folder Photo1
    Sir I want to always get a screen folder instead of they App folder when I creat a new project template

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search