0.3.1 • Published 6 years ago

react-native-svg-component v0.3.1

Weekly downloads
2
License
MIT
Repository
-
Last release
6 years ago

react-native-svg-component

React Native SVG renderer using react-native-svg.

Getting Started

Installation

  • add package

      yarn add react-native-svg-component
  • link native files We are using react-native-svg to render SVG. Please follow the its doc to finish setup.

Usage

  • Import to the component where you want to show an SVG
import { Svg } from 'react-native-svg-component';
  • Send initial props
    <Svg
        source={{ uri: data }}
        alt={`react native svg component example`}
        width={160}
        height={160}
        style={{}}
    />

Properties

PropdefaultTypeDescription
source-ImageSourcePropTypeA source object the same with what Image component will accept.
alt-stringAlt text which will be used as accessibility label for Svg
width-numberWidth of the Svg.
height-numberHeight of the Svg.
style-StyleProp<ViewStyle>Style for this component.

Develop

brew install watchman
yarn global add gulp-cli
yarn all
yarn run-ios

Examples

yarn run-ios
yarn run-android
0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

6 years ago

0.1.25

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago