react-native-ico-font-awesome

Font Awesome Icons for React Native

Usage no npm install needed!

<script type="module">
  import reactNativeIcoFontAwesome from 'https://cdn.skypack.dev/react-native-ico-font-awesome';
</script>

README

Font Awesome Icons for React Native

react-native-ico-font-awesome

369 Vector Icons for React Native

align-to-left align-to-right ambulance

List of icons

Usage

import Icon from 'react-native-ico-font-awesome';


// Inside some view component
render() {
    return (
        <>
          <Icon name="align-to-left" />
          <Icon name="align-to-right" height="40" width="40" />
          <Icon name="ambulance" color="red" />
          <Icon name="align-to-right" badge="10" />
          <Icon name="align-to-right" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
          <Icon name="align-to-left" background="circle" />
          <Icon name="align-to-left" background={{ type: "button", color: 'green' }} />
        </>
    );
}

Installation

yarn

yarn add react-native-ico-font-awesome react-native-svg

npm

npm install --save react-native-ico-font-awesome 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 "align-to-left"
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
background no background type "circle"
background no background object {type: "circle", color: 'yellow'}
badge no badge string "10"
badge no badge object {value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}
...rest no other props style={{backgroundColor: "#00f"}}

Icons Made by

Dave Gandy

Created by

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