-
Notifications
You must be signed in to change notification settings - Fork 2
Code structure
Following is the basic project structure, describing the directories important for everyday development. Some folders containing various configurations and settings are omitted.
./ReactNativeBaseProject
----| @types
----| __e2e__
----| __mocks__
----| android
----| assets
----| config
----| ios
----| scripts
----| src
----|----| modules
----|----|----| countries
----|----|----| main
----|----| theme
____| index.js
./@types
Global custom types. Used for example for overriding or extending existing types of some 3rd party package or to add types for libraries without any typescript support.
./__e2e__
End-to-end tests and their configuration.
./__mocks__
Default mocks of node_modules packages.
./android
Native android application source code.
./assets
Global static assets (fonts, icons, etc.).
./config
Files with configurations for the different parts of the project.
./ios
Native ios application source code.
./scripts
Different scripts.
./src
Application source code.
./src/modules
Application modules.
./src/theme
Colors, sizes, and other theme-related settings.
./index.js
Application's entry point.