A well-organized React Native project structure helps developers write clean, scalable, and maintainable mobile applications. Understanding each file and folder allows you to debug faster, collaborate better, and follow industry standards.
When you create a new React Native app using CLI, a default folder structure is generated. Each file has a specific role, from bootstrapping the app to rendering UI components.
// Typical React Native project structure
myApp/
├── android/
├── ios/
├── node_modules/
├── src/
│ ├── components/
│ ├── screens/
│ ├── navigation/
│ └── assets/
├── App.js
├── index.js
├── package.json
└── app.json
// index.js is the entry point of the app
import {AppRegistry} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
AppRegistry.registerComponent(appName, () => App);
The index.js file registers the root component using AppRegistry. React Native loads App.js and starts rendering the UI from there.
Click on any folder or file in the "Project Tree" on the left to understand its specific purpose in the React Native ecosystem.
componentssrc folder