Package Exports
- react-native-ico-material-design
- react-native-ico-material-design/src/data
- react-native-ico-material-design/src/data.js
- react-native-ico-material-design/src/index.jsx
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-ico-material-design) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Material Design Icons for React Native
react-native-ico-material-design
423 Vector Icons for React Native
List of icons
Usage
import Icon from 'react-native-ico-material-design';
// Inside some view component
render() {
return (
<>
<Icon name="add-label-button" />
<Icon name="add-plus-button" height="40" width="40" />
<Icon name="add-to-queue-button" color="red" />
<Icon name="add-to-queue-button" colors={{ "#000000": "#FFFFFF" }} />
<Icon name="add-plus-button" badge="10" />
<Icon name="add-plus-button" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
<Icon name="add-label-button" background="circle" />
<Icon name="add-label-button" background={{ type: "button", color: 'green' }} />
</>
);
}
Installation
yarn
yarn add react-native-ico-material-design react-native-svg
npm
npm install --save react-native-ico-material-design react-native-svg
Link react-native-svg
react-native link react-native-svg
pod install ( for iOS )
cd ios && pod install && cd ..
API
<Icon name [color width height background badge ...rest] />
Returns a SvgXml icon by name and group.
name | optional | default value | description | examples |
---|---|---|---|---|
name | no | name of icon | "add-label-button" | |
color | yes | line color, css style | "#00ff00", "#0f0", "green" | |
colors | yes | replace colors | {"#FFFFFF": "#000000"} // white to black | |
width | yes | 20 | width of the icon | 40 |
height | yes | 20 | height of the icon | 40 |
background | yes | background type | "circle" | |
background | yes | background object | {type: "circle", color: 'yellow'} | |
badge | yes | badge string | "10" | |
badge | yes | badge object | {value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'} | |
...rest | yes | other props | style={{backgroundColor: "#00f"}} |
Icons Made by
Created by
Dimitry Ivanov 2@ivanoff.org.ua # curl -A cv ivanoff.org.ua