Remove rnpm references in favour of react-native
Summary: No need for the references now that rnpm is baked into core. Closes https://github.com/facebook/react-native/pull/10069 Differential Revision: D3914945 fbshipit-source-id: bdf9aac03a6544bec1f18b9a80f26638ee508e16
This commit is contained in:
Родитель
7dff5d2e30
Коммит
1f9b765f81
|
@ -27,32 +27,21 @@ error as soon as you try to use the library._
|
||||||
|
|
||||||
### Automatic linking
|
### Automatic linking
|
||||||
|
|
||||||
"[rnpm](http://github.com/rnpm/rnpm)" is a community project that allows linking of native dependencies automatically:
|
|
||||||
|
|
||||||
#### Step 1
|
#### Step 1
|
||||||
|
|
||||||
Install `rnpm`:
|
|
||||||
```bash
|
|
||||||
$ npm install rnpm -g
|
|
||||||
```
|
|
||||||
|
|
||||||
**Note:** _`rnpm` requires `node` version 4.1 or higher_
|
|
||||||
|
|
||||||
#### Step 2
|
|
||||||
|
|
||||||
Install a library with native dependencies:
|
Install a library with native dependencies:
|
||||||
```bash
|
```bash
|
||||||
$ npm install <library-with-native-dependencies> --save
|
$ npm install <library-with-native-dependencies> --save
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** _`--save` or `--save-dev` flag is very important for this step. `rnpm` will link
|
**Note:** _`--save` or `--save-dev` flag is very important for this step. React Native will link
|
||||||
your libs based on `dependencies` and `devDependencies` in your `package.json` file._
|
your libs based on `dependencies` and `devDependencies` in your `package.json` file._
|
||||||
|
|
||||||
#### Step 3
|
#### Step 2
|
||||||
|
|
||||||
Link your native dependencies:
|
Link your native dependencies:
|
||||||
```bash
|
```bash
|
||||||
$ rnpm link
|
$ react-native link
|
||||||
```
|
```
|
||||||
|
|
||||||
Done! All libraries with a native dependencies should be successfully linked to your iOS/Android project.
|
Done! All libraries with a native dependencies should be successfully linked to your iOS/Android project.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче