File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -37,18 +37,22 @@ npm install @bravemobile/react-native-code-push
37
37
38
38
### 2. Run init command
39
39
40
- Run the following command to automatically configure your project for CodePush.
40
+ For React Native CLI projects, you can use the automatic setup command to configure your project for CodePush.
41
41
42
42
``` bash
43
43
npx code-push init
44
44
```
45
45
46
46
This command will automatically edit your ` AppDelegate ` and ` MainApplication ` files to integrate CodePush.
47
47
48
+ ### 2-1. Manual Setup
49
+
50
+ If you prefer manual setup or if the automatic configuration fails, you can follow the manual setup instructions below.
51
+
48
52
<details ><summary >Click to see the manual setup instructions.</summary >
49
53
<p >
50
54
51
- ### iOS Setup
55
+ ### iOS Manual Setup
52
56
53
57
#### (1) Install CocoaPods Dependencies
54
58
@@ -123,7 +127,7 @@ Then, edit `AppDelegate.swift` like below.
123
127
```
124
128
125
129
126
- ### Android Setup
130
+ ### Android Manual Setup
127
131
128
132
#### (1) Edit ` android/app/build.gradle `
129
133
@@ -177,6 +181,7 @@ Add the following line to the end of the file.
177
181
</p >
178
182
</details >
179
183
184
+
180
185
### 3. Expo Setup
181
186
For Expo projects, you can use the automated config plugin instead of manual setup.
182
187
@@ -201,6 +206,7 @@ npx expo prebuild
201
206
** Requirements**
202
207
Expo SDK: 50.0.0 or higher
203
208
209
+
204
210
### 4. "CodePush-ify" Your App
205
211
206
212
The root component of your app should be wrapped with a higher-order component.
You can’t perform that action at this time.
0 commit comments