File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,21 @@ A simple basic template to start a new React Native app with ESLint and custom s
12
12
13
13
Create a new project passing a template:
14
14
15
- ```
15
+ ``` sh
16
16
react-native init [ProjectName] --template basic-app
17
17
```
18
18
19
19
Wait for download dependencies.
20
20
21
+ ### Install Husky git hooks
22
+
23
+ Git hooks is not installed by default, because when start a new React Native app, you don't have a git repository started.
24
+ To fix this, first init git repo with ` git init . ` inside you [ ProjectName] dir and after this run on terminal:
25
+
26
+ ``` sh
27
+ node node_modules/husky/lib/installer/bin install
28
+ ```
29
+
21
30
### Finish installation
22
31
23
32
Run ` node setup.js ` to inject custom scripts and remove unnecessary files.
@@ -77,7 +86,7 @@ Clone this repo with `git clone https://github.com/lucianomlima/react-native-tem
77
86
78
87
To execute the project with your changes, you can use the absolute path of cloned repo with ` react-native-cli ` :
79
88
80
- ```
89
+ ``` sh
81
90
react-native init [PROJECT_NAME] --template file:///path/to/repo
82
91
```
83
92
You can’t perform that action at this time.
0 commit comments