You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.**Start the app**: `yarn android:{env}` or `yarn ios:{env}` (envs: `dev`, `staging`, and `prod`)
10
-
2.**Start metro bundler**: `yarn start`
11
-
3.**Lint the app**: `yarn lint`
12
-
4.**Test the app**: `yarn test`
13
-
14
7
## Getting started
15
8
16
9
1. Install dependencies: `yarn`
17
10
2. Create a `.env` file in the root directory of the project, based on the `.env.defaults` sample file and the extra constants that you may need. This will be your development env.
18
11
19
-
You can also create `.env.prod`, `.env.staging`, and `.env.qa` to define environment variables for production and staging.
20
-
21
-
1. Rename your new project using `yarn rename` or `npm run rename`
22
-
2. Start on android or ios: `yarn android:{env}` or `yarn ios:{env}` (envs: `dev`,`qa`, `staging`, and `prod`)
12
+
2.1 You can also create `.env.prod`, `.env.staging`, and `.env.qa` to define environment variables for production and staging.
13
+
3. Rename your new project using `yarn rename` or `npm run rename`
23
14
24
15
### Steps for Android development
25
16
@@ -29,27 +20,36 @@ None
29
20
30
21
1. Run the following command to install iOS pods
31
22
32
-
```
23
+
```bash
33
24
npx pod-install
34
25
```
35
26
27
+
## Commands
28
+
29
+
1.**Start metro bundler**: `yarn start`
30
+
2.**Start the app**: `yarn android:{env}` or `yarn ios:{env}` (envs: `dev`, `staging`, and `prod`)
31
+
3.**Lint the app**: `yarn lint`
32
+
4.**Test the app**: `yarn test`
33
+
34
+
**Note: by default we use Expo CLI for iOS if you want to use react-native CLI you must append the following flag to the command:**
35
+
36
+
```bash
37
+
USE_RN_CLI=true yarn ios:{env}
38
+
```
39
+
36
40
## Continuous Integration
37
41
38
42
The repo includes configuration for using GitHub Actions to run unit tests and code analysis: `.github/workflows/test.yml`. This can be adapted as needed for specifics of each project. Both CodeClimate and Sonarqube integrations are included in the workflow and their required environment settings should be retrieved from the repo Secrets.
39
43
40
44
## Using folders template
41
45
42
-
There's a folder named .fttemplates where you'll find a template you can use to create new components for your app, keeping the same folder conventions for all your components.
46
+
There's a folder named .fttemplates where you'll find a template you can use to create new components for your app, keeping the same folder conventions for all your components.
43
47
44
48
You must install Folder Templates extensions in Visual Studio Code to use this feature. You'll find it [here](https://marketplace.visualstudio.com/items?itemName=Huuums.vscode-fast-folder-structure).
45
49
46
50
If you install the extension you can create your components folder using the template by clicking on Create new templated folder button in the context menu.
0 commit comments