A package for rendering SVG images in React Native based on basicons
npm install react-native-svg-rendo
import SvgComponent from 'react-native-svg-rendo';
const MyComponent = () => {
return (
<SvgComponent
svgKey="alphabet-a"
stroke="white"
strokeWidth={3}
width={32}
height={32}
fill="red"
/>
);
};
Styling for the SvgComponent itself cannot be done directly. Instead, you need to pass styling properties like stroke, strokeWidth, width, height, and fill as props. Native styling support is under development and will allow the component to receive style props in future updates.
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Stay tuned for additional SVG icons that will be added to the package in future updates.
- You can take a look at the change log here