βββ src
β βββ api
β βββ assets
β β βββ fonts
β β βββ images
β βββ components
β β βββ common
β β βββ presentation
β βββ constants
β βββ hooks
β βββ navigation
β βββ redux
β β βββ actions
β β βββ constants
β β βββ reducers
β βββ screens
β β βββ homeScreen
β β βββ aboutScreen
β βββ styles
β βββ utility
βββ src
β βββ api
β β βββ ApiCalls.js
β β βββ EndUrls.js
β β βββ index.js
β βββ assets
β β βββ fonts
β β β βββ font-name1.ttf
β β β βββ font-name2.ttf
β β βββ images
β β β βββ icon1.png
β β β βββ icon2.png
β βββ components
β β βββ common
β β β βββ customButtonRN
β β β β βββ index.js
β β β β βββ styles.js
β β β βββ customTextRN
β β β β βββ index.js
β β β β βββ styles.js
β β βββ presentation
β β β βββ buttonRN
β β β β βββ index.js
β β β β βββ styles.js
β β β βββ textRN
β β β β βββ index.js
β β β β βββ styles.js
β βββ constants
β β β βββ Enums.js
β β β βββ Fonts.js
β β β βββ Images.js
β β β βββ ScreenNames.js
β β β βββ StorageKeys.js
β β β βββ Strings.js
β β β βββ Colors.js
β βββ hooks
β β β βββ index.js
β βββ navigation
β β β βββ AppNavigator.js
β β β βββ AuthNavigator.js
β β β βββ TabNavigator.js
β βββ redux
β β βββ actions
β β β βββ Action1.js
β β β βββ Action2.js
β β βββ constants
β β β βββ Constants1.js
β β β βββ Constants1.js
β β βββ reducers
β β β βββ Reducer1.js
β β β βββ Reducer2.js
β β βββ store.js
β βββ screens
β β βββ homeScreen
β β β βββ index.js
β β β βββ styles.js
β β βββ aboutScreen
β β β βββ index.js
β β β βββ styles.js
β βββ styles
β β βββ GlobalStyle.js
β βββ utility
β β βββ index.js
This folder contains logic related to external API communications.
This folder will store all the assets that we are using in react-native. You can add static files like fonts and images to it. Also, you can add more assets like videos in this folder according to your project requirements.
- fonts/
- images/
In this folder, we create all the React components that will be part of our app and any custom component that we create during the appβs development. We can group components by features or places they will be used and components that will be used throughout our app, like buttons or texts.
- common/
- presentation/
This folder contains all the string related file.
If you have custom hooks defined in your project you can put it over here that can be shared across your entire project.
Your project base navigation goes here. You can create a stack navigator in it and export it to your application.
This folder holds all the redux files if you are using react-redux for managing state. Inside redux folder you have actions, reducers, store which can easily manage your redux files.
- actions/
- constants/
- reducers/
If you have multiple screens like auth screens: login, register and profile screens, product screens it can be saved here.
If you have global styles defined in your project you can put it over here like colors, font styles like things.
All the utils/helpers files go here that storing reusable methods and logic like validations, progress bar, date pickers, and according to your app requirements.