0.1.6 • Published 3 years ago

react-native-svg-view v0.1.6

Weekly downloads
6
License
MIT
Repository
github
Last release
3 years ago

react-native-svg-view

react-native-svg-view is a wrapper on popular native svg libraries Macaw and 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

npm install react-native-svg-view

or

yarn add react-native-svg-view

Usage

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

PropDescriptionPlatform
style?: StylePropcomponent styleboth
source: stringsvg urlboth

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

Alternatives

react-native-svg

react-native-svg-uri

License

MIT

0.1.6

3 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago