1.0.7 • Published 5 years ago

react-svg-color-test v1.0.7

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
5 years ago

react-svg-color

Version

react-svg-color provides SVG support to React Native on iOS and Android, and a compatibility layer for the web.

Installation

    npm i react-svg-color

A simple component

    import SvgColor from 'react-svg-color'
    import YourSvgFile from 'your-svg-file'
    
    ...

    <SvgColor 
        svg={YourSvgFile} 
        width={200} 
        colors={["#63bf6d", "#59739e", "#ed3e3b", "#d993d5", "#e8a64f"]} 
    />

Props

NameTypeDescription
svgsvg filePaste your svg file
widthintChange svg width
colorsarrayStringColor array to change the desired colors

Run example

git clone https://github.com/magicismight/react-native-svg-example.git
cd react-native-svg-example
yarn
1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago