1.2.1 • Published 6 years ago
react-native-ico-baloons v1.2.1
react-native-ico-baloons
Baloons Icons for React Native
3 Icons
Usage
import Icon from 'react-native-ico-baloons';
// Inside some view component
render() {
return (
<Fragment>
<Icon name="home" />
<Icon name="file" height="40" width="40" />
<Icon name="smile" color="red" />
</Fragment>
);
}Installation
yarn
yarn add react-native-ico-baloons react-native-svgnpm
npm install --save react-native-ico-baloons react-native-svgLink react-native-svg
react-native link react-native-svgpod install ( for iOS )
cd ios && pod install && cd ..API
<Icon name color width height ...rest />
Returns a SvgXml icon by name and group.
| name | optional | default value | description | examples |
|---|---|---|---|---|
| name | no | name of file | "home" | |
| color | yes | line color, css style | "#00ff00", "#0f0", "green" | |
| width | yes | 20 | width of the icon | 40 |
| height | yes | 20 | height of the icon | 40 |
| ...rest | no | other props | style={{backgroundColor: "#00f"}} |
List of icons
Icons Made by
Created by
Dimitry Ivanov 2@ivanoff.org.ua # curl -A cv ivanoff.org.ua
1.2.1
6 years ago