raster-react-native
v0.2.0
Published
Retro pixel perfect icons with a charming aesthetic for your needs.
Maintainers
Readme
Retro pixel perfect icons with a charming aesthetic for your needs.
Each icon can be imported as a React component, which renders an inline SVG element. This way, only the icons that are imported into your project are included in the final bundle. The rest of the icons are tree-shaken away.
Example
Additional props can be passed to adjust the icon:
import { HeartIcon } from 'raster-react-native';
const MyComponent = () => {
return (
<HeartIcon
fill='#f54'
size={83}
radius={4}
strokeWidth={1}
stroke='#ffffff'
{...props} // svg props (x, y, strokeDasharray ...)
/>
);
};
export default MyComponent;Props
| name | type | default |
| ------------- | -------- | ------------ |
| size | number | 24 |
| fill | string | currentColor |
| strokeWidth | number | 2 |
| radius | number | 1 |
