format Installation document

This commit is contained in:
Horcrux
2016-09-14 21:58:16 +08:00
parent 42a2c84287
commit b83d537ab8
+16 -16
View File
@@ -16,28 +16,28 @@
*With Exponent, this is pre-installed. Jump ahead to [Usage](#Usage)* *With Exponent, this is pre-installed. Jump ahead to [Usage](#Usage)*
1. Install library from `npm`: 1. Install library from `npm`
```bash ```bash
npm install react-native-svg --save npm install react-native-svg --save
``` ```
- react-native-svg >= 3.2.0 only supports react-native >= 0.29.0
- react-native-svg >= 4.2.0 only supports react-native >= 0.32.0
- react-native-svg >= 4.3.0 only supports react-native >= 0.33.0
- react-native-svg >= 3.2.0 only supports react-native >= 0.29.0
- react-native-svg >= 4.2.0 only supports react-native >= 0.32.0
- react-native-svg >= 4.3.0 only supports react-native >= 0.33.0
2. Link native code 2. Link native code
```bash ```bash
react-native link react-native-svg react-native link react-native-svg
``` ```
react-native@0.29.0 and 0.29.1 cannot work with Android link properly:[here](https://github.com/facebook/react-native/pull/8612) react-native@0.29.0 and 0.29.1 cannot work with Android link properly:[here](https://github.com/facebook/react-native/pull/8612)
Or use `rnpm` instead: Or use `rnpm` instead:
```bash ```bash
rnpm link react-native-svg rnpm link react-native-svg
``` ```
### Usage ### Usage