Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 13df1f2

Browse files
authored
Merge pull request #448 from Microsoft/update-rnpm-instructions
Update rnpm instructions
2 parents c9dff4d + deff862 commit 13df1f2

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

README.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,15 @@ In order to accommodate as many developer preferences as possible, the CodePush
9898

9999
#### Plugin Installation (iOS - RNPM)
100100

101-
1. Run `rnpm link react-native-code-push`
101+
1. As of v0.27 of React Native, `rnpm link` has already been merged into the React Native CLI. Simply run:
102+
```
103+
react-native link react-native-code-push
104+
```
105+
106+
If your app uses a version of React Native that is lower than v0.27, run the following:
107+
```
108+
rnpm link react-native-code-push
109+
```
102110
103111
*Note: If you don't already have RNPM installed, you can do so by simply running `npm i -g rnpm` and then executing the above command. If you already have RNPM installed, make sure you have v1.9.0+ in order to benefit from this one step install.*
104112
@@ -208,10 +216,18 @@ In order to accommodate as many developer preferences as possible, the CodePush
208216

209217
#### Plugin Installation (Android - RNPM)
210218

211-
1. Run `rnpm link react-native-code-push`
212-
219+
1. As of v0.27 of React Native, `rnpm link` has already been merged into the React Native CLI. Simply run:
220+
```
221+
react-native link react-native-code-push
222+
```
223+
224+
If your app uses a version of React Native that is lower than v0.27, run the following:
225+
```
226+
rnpm link react-native-code-push
227+
```
228+
213229
*Note: If you don't already have RNPM installed, you can do so by simply running `npm i -g rnpm` and then executing the above command.*
214-
230+
215231
2. If you're using RNPM >=1.6.0, you will be prompted for the deployment key you'd like to use. If you don't already have it, you can retreive this value by running `code-push deployment ls <appName> -k`, or you can choose to ignore it (by simply hitting `<ENTER>`) and add it in later. To get started, we would recommend just using your `Staging` deployment key, so that you can test out the CodePush end-to-end.
216232
217233
3. (Only needed in v1.8.0+ of the plugin) In your `android/app/build.gradle` file, add the `codepush.gradle` file as an additional build task definition underneath `react.gradle`:

0 commit comments

Comments
 (0)