1.0.7 • Published 5 years ago
react-svg-color-test v1.0.7
react-svg-color
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
Name | Type | Description |
---|---|---|
svg | svg file | Paste your svg file |
width | int | Change svg width |
colors | arrayString | Color 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