Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chitezh/react-native-svg-image

Load SVG images from network; Does not work with local svgs
https://github.com/chitezh/react-native-svg-image

react-native svg svg-images

Last synced: about 1 month ago
JSON representation

Load SVG images from network; Does not work with local svgs

Awesome Lists containing this project

README

        

# react-native-svg-image

## Load SVG images from network(It does not work with local svg files at the moment)

Simple SVG image renderer with progress loader

Ever had challenges loading SVGs from network using [react-native-svg](https://github.com/react-native-community/react-native-svg) or [react-native-svg-uri](https://github.com/matc4/react-native-svg-uri)?
This simple package is worth a try.

## Installation

```
npm install react-native-svg-image --save

```

## Props

| Prop | Type | Note |
|---|---|---|
| `source` | `ImageSource` | An object containing the svg image `uri`
| `style` | `WebView` style | This extends [WebView](https://facebook.github.io/react-native/docs/webview.html) styles
| `Usage

```javascript
import SVGImage from 'react-native-svg-image';

const SVGImageComponent = () => (



);
```

## Shots

## Dev

Lint & test (todo)

```

npm test

```