5.1.2 • Published 6 months ago

react-native-ico-phones-and-mobiles v5.1.2

Weekly downloads
23
License
-
Repository
github
Last release
6 months ago

Phones And Mobiles Icons for React Native

react-native-ico-phones-and-mobiles

120 Vector Icons for React Native

List of icons

Usage

import Icon from 'react-native-ico-phones-and-mobiles';


// Inside some view component
render() {
    return (
        <>
          <Icon name="4g" />
          <Icon name="4g plus" height="40" width="40" />
          <Icon name="4g" color="red" />
          <Icon name="4g" colors={{ "#000000": "#FFFFFF" }} />
          <Icon name="4g plus" badge="10" />
          <Icon name="4g plus" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
          <Icon name="4g" background="circle" />
          <Icon name="4g" background={{ type: "button", color: 'green' }} />
        </>
    );
}

Installation

yarn

yarn add react-native-ico-phones-and-mobiles react-native-svg

npm

npm install --save react-native-ico-phones-and-mobiles 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.

nameoptionaldefault valuedescriptionexamples
namenoname of icon"4g"
coloryesline color, css style"#00ff00", "#0f0", "green"
colorsyesreplace colors{"#FFFFFF": "#000000"} // white to black
widthyes20width of the icon40
heightyes20height of the icon40
backgroundyesbackground type"circle"
backgroundyesbackground object{type: "circle", color: 'yellow'}
badgeyesbadge string"10"
badgeyesbadge object{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}
...restyesother propsstyle={{backgroundColor: "#00f"}}

Icons Made by

Dave Gandy

Created by

Dimitry Ivanov 2@ivanoff.org.ua # curl -A cv ivanoff.org.ua