mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-09 01:25:01 +00:00
format Installation document
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user