# react-native-svg-view

> desc

Latest version **0.1.6** (published 2020-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-svg-view
pnpm add react-native-svg-view
yarn add react-native-svg-view
bun add react-native-svg-view
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2020-11-19 |
| First published | 2020-10-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 498.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | troZee |
| Maintainers | trozee |
| Keywords | react-native, ios, android |

## Links

- npm: https://www.npmjs.com/package/react-native-svg-view
- Repository: https://github.com/troZee/react-native-svg-view
- Homepage: https://github.com/troZee/react-native-svg-view/issues#readme
- Issues: https://github.com/troZee/react-native-svg-view/issues
- npm.io page: https://npm.io/package/react-native-svg-view

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.6 (latest) — 2020-11-19
- 0.1.5 — 2020-11-11
- 0.1.4 — 2020-11-09
- 0.1.2 — 2020-11-09
- 0.1.1 — 2020-10-31
- 0.1.0 — 2020-10-31

## README

# react-native-svg-view

`react-native-svg-view` is a wrapper on popular native svg libraries [Macaw](https://github.com/exyte/Macaw) and [Glide](https://github.com/bumptech/glide). This library allows you to read svg file from a url.

## Objecitve

You can find lots of libraries, which support svg in react native, but mostly of them are based on JSX or WebView approach. This library process svg data using a separate thread created on native side, so JS thread is not blocked due processing. Currently library supports data source from the internet.

## Installation

```sh
npm install react-native-svg-view
```

or

```sh
yarn add react-native-svg-view
```

## Usage

```jsx
import SvgView from 'react-native-svg-view';

<SvgView
  source="https://www.dropbox.com/s/d1dbdvo4l7xry4w/downdogflip.svg?raw=1"
  style={{ height: 24, width: 24 }}
/>;
```

## API

| Prop                         | Description     | Platform |
| ---------------------------- | --------------- | -------- |
| style?: StyleProp<ViewStyle> | component style | both     |
| source: string               | svg url         | both     |
|                              |                 |          |

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## Alternatives

[react-native-svg](https://github.com/react-native-svg/react-native-svg)

[react-native-svg-uri](https://github.com/vault-development/react-native-svg-uri)

## License

MIT

---
_Source: https://npm.io/package/react-native-svg-view · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
