Giter Site home page Giter Site logo

react-native-ionicons's Introduction

react-native-ionicons

npm Build Status code style: prettier

Bring Ionicons - Beautifully crafted open source icons to your awesome react-native apps.

Usage

  • Install
npm install react-native-ionicons
  • Link with react-native (Optional)

Since v0.60, react-native link was replaced by the autolinking mechanism. So, needn't do this when you're using React Native 0.60+.

react-native link react-native-ionicons
  • Use it
import Icon from 'react-native-ionicons'

const IconBar = () => (
  <View>
    <Icon name="add" />
    <!-- This is same to the following: -->
    <Icon ios="ios-add" android="md-add" />
  </View>
)

Install instructions for Windows projects

  • Open the windows project file (.sln) in Visual Studio
  • Right click the Assets folder and select Add Existing
  • Browse to the node_modules\react-native-ionicons\fonts folder and select the font file
  • Click the Add drop-down and select Add as Link
  • In Visual Studio, select the font file in the Assets folder
  • Set the Copy To Output Directory property to Copy if newer
  • Save changes and recompile the project

Prop Types

Name Type Default Description
name IconName - Icon name used on all platforms
android IconName - Icon name for Android devices
ios IconName - Icon name for iOS devices
color ?string - Icon color
size ?number 30 Icon size, namely fontSize

IconName can be of short name or qualified name, which is the short one preffixed with md- or ios-.

The short IconName can be found here.

Versioning

We DOT NOT use SemVer for versioning. Though you can think about SemVer when reading our version, except our major number follow the one of Ionicons.

I Use Firefox

License

MIT

react-native-ionicons's People

Contributors

arniu avatar matei-radu avatar namalee avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.