Skip to content
This repository was archived by the owner on Nov 9, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ SVG from an SVG/XML format file.

## Installation

```
```bash
npm i @target-corp/react-native-svg-parser
```

## Usage

```
```jsx
import ReactNativeSvgParser from 'react-native-svg-parser'

const svgNode = ReactNativeSvgParser(`YOUR SVG XML STRING`, `YOUR CSS STYLESHEET STRING`)
Expand Down Expand Up @@ -44,7 +44,7 @@ The parser takes a third parameter, and object with config options. You can spec

Example usage:

```
```jsx
import ReactNativeSvgParser from 'react-native-svg-parser'

const svgString = `<svg height="100" width="100">
Expand Down Expand Up @@ -76,13 +76,13 @@ render() {

In order to test and develop locally you will need to install the peer dependencies (React and React Native). However, we have you covered. Just run this command:

```
```bash
npm run install-peers
```

Then you can run test lint and build using this command:

```
```bash
npm run ci
```

Expand All @@ -92,8 +92,8 @@ npm run ci

On v5.5.1 react-native-svg enforced prop type of "object" on transform attribute. However,
as of v6.0.0 this is changed to:
```
transform: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
```jsx
transform: PropTypes.oneOfType([PropTypes.object, PropTypes.string])
```
https://github.com/react-native-community/react-native-svg/blob/master/lib/props.js#L69

Expand Down