Skip to content

Commit 034098c

Browse files
committed
docs: update information
1 parent 4c8ea60 commit 034098c

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
# react-native-svg-from-uri
22

3-
> This is a fork of the unmaintained https://github.com/vault-development/react-native-svg-uri
3+
> This is a fork of the unmaintained [react-native-svg-uri](https://github.com/vault-development/react-native-svg-uri) library, originally written by Matias Cortes.
44
55
Render SVG images in React Native from an URL or a static file
66

7-
This was tested with RN 0.33 and react-native-svg 4.3.1 (depends on this library)
8-
[react-native-svg](https://github.com/react-native-community/react-native-svg)
7+
This was tested with RN 0.52.0 and [react-native-svg](https://github.com/react-native-community/react-native-svg) 6.3.1, which this library depends on.
98

10-
Not all the svgs can be rendered, if you find problems fill an issue or a PR in
11-
order to contemplate all the cases
9+
## Installation
1210

1311
Install library from `npm`
1412

1513
```bash
1614
npm install react-native-svg-from-uri --save
1715
```
1816

19-
Link library react-native-svg
17+
Link the **react-native-svg** library
2018

2119
```bash
2220
react-native link react-native-svg # not react-native-svg-from-uri !
@@ -35,13 +33,15 @@ react-native link react-native-svg # not react-native-svg-from-uri !
3533
* [ANDROID] There is a problem with static SVG file on Android,
3634
Works OK in debug mode but fails to load the file in release mode.
3735
At the moment the only workaround is to pass the svg content in the svgXmlData prop.
36+
* Not all the svgs can be rendered, if you find problems fill an issue or a PR in
37+
order to contemplate all the cases
3838

39-
## <a name="Usage">Usage</a>
39+
## Usage
4040

4141
Here's a simple example:
4242

4343
```javascript
44-
import SvgUri from "react-native-svg-uri";
44+
import SvgUri from "react-native-svg-from-uri";
4545

4646
const TestSvgUri = () => (
4747
<View style={styles.container}>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"xmldom": "^0.1.22"
1414
},
1515
"peerDependencies": {
16-
"react-native-svg": "^5.3.0"
16+
"react-native-svg": "^6.3.1"
1717
},
1818
"bugs": {
1919
"url": "https://github.com/machour/react-native-svg-from-uri/issues"

0 commit comments

Comments
 (0)