-
Notifications
You must be signed in to change notification settings - Fork 4
App Project Structure & Guidelines
Every developer needs to follow the following structure and naming with the mobile app project.
- Components
- Fixtures
- NativeModules
- Resources
- Screens
- Store
- Util
We keep the reusable components in this folder. Each component has its own folder containing a Index.js. Component name must start with a capital letter. Styles of the component which are specific to the component reside in the same folder with the name of Styles.js. Shared styles reside in the Styles.js file inside the Resources folder. So as an example a CustomList component folder structure will be like the following:
- Components
-
- CustomList
-
-
- Index.js
-
-
-
- Styles.js
-
Components have to be Stateless components.
This folder contains the .js files pointing to the Android/iOS Native Modules and must be in the same name with the actual native module.
This folder contains the following files and folders:
- Images [Folder containing the .PNG/.JPG image resources needed to be used in the project]
- Colors.js [General project colours]
- Dimens.js [General Font Sizes and Dimensions]
- Strings.js [General texts being used across the app]
- Styles.js [General styles being used across the app]