2.0.1 • Published 7 years ago

react-native-svg-image v2.0.1

Weekly downloads
108
License
MIT
Repository
github
Last release
7 years ago

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 or react-native-svg-uri? This simple package is worth a try.

Installation

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

Props

PropTypeNote
sourceImageSourceAn object containing the svg image uri
styleWebView styleThis extends WebView styles
<anyWebView propsAny other WebView prop(s)

Usage

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

const SVGImageComponent = () => (
  <View style={{ flex: 1 }}>
    <SVGImage
      style={{ width: 80, height: 80 }}
      source={{uri:'https://fluent-panda.appspot.com.storage.googleapis.com/dumbbell.svg'}}
    />
  </View>
);

Shots

Dev

Lint & test (todo)

npm test
2.0.1

7 years ago

2.0.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago