Component - Project structure overview
This UI component shows a simple React Native project folder structure. It helps beginners understand how files and folders are organized in a mobile app project.
This UI component shows a simple React Native project folder structure. It helps beginners understand how files and folders are organized in a mobile app project.
View
├── Text ("Project Root")
├── View (Folder: src)
│ ├── Text ("src")
│ ├── View (Folder: components)
│ │ └── Text ("components")
│ ├── View (Folder: screens)
│ │ └── Text ("screens")
│ └── View (Folder: assets)
│ └── Text ("assets")
├── Text ("App.js")
└── Text ("package.json")android and ios folders contain platform-specific native code, not app logic.src folder to keep it separate and clear.src -> Option Csrc folder [OK]src folder, not platform folders [OK]android or ios foldersandroid as the folder name for Android platform code by default.android matches the exact folder name used by React Native.android [OK]android and ios [OK]myApp/ ├── android/ ├── ios/ ├── src/ │ └── App.js └── package.jsonWhere will the main app component be located?
src folder contains App.js, which is the main app component file.android and ios folders hold native code, not React Native components.src folder -> Option Dsrc/App.js [OK]src, not platform folders [OK]android or iosmyApp/ ├── android/ ├── ios/ ├── app/ │ └── App.js └── package.jsonWhat is the likely cause?
app folder, but React Native expects it in src or root by default../App module.app folder but should be in src -> Option Bsrc in dedicated folders helps maintain clarity and separation.android and ios are for native code, not React Native components.src for the feature components -> Option Asrc for maintainability [OK]src in separate folders [OK]Pass the test and this pattern moves unknown