0.0.1 • Published 6 years ago

@mblode/react-native-feather v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

React Native Feather Icons

npm

Simply beautiful SVG icons as React Native SVG components.

This repository is a copy of the React Feather project.

The main difference between them is that this project outputs React Native SVG components that will render on React Native platforms.

Installation

npm install react-native-feather --save (Not yet published NPM)

You will also need to ensure you have installed React Native SVG into your project.

Usage

import { Camera } from 'react-feather';

class MyClass extends React.Component {
  render() {
    return <Camera />
  }
}

If you are using WebPack, you can import only one icon.

import Camera from 'react-native-feather/dist/icons/camera';

class MyClass extends React.Component {
  render() {
    return <Camera />
  }
}

If you can't use ES6 imports, it's possible to include icons from the compiled folder ./dist.

var Camera = require('react-native-feather/dist/icons/camera').default;

var MyComponent = React.createClass({
  render: function () {
    return (
      <Camera />
    );
  }
});

You can also include the whole icon pack:

import * as Icon from 'react-native-feather';

class MyClass extends React.Component {
  render() {
    return <Icon.Camera />
  }
}

Icons can be configured with inline props:

<Icon.AlertCircle color="red" size={48} />
acorn-jsxajvabbrevacornansi-regexansi-stylesansi-escapesajv-keywordsaprobaanymatchargparseare-we-there-yetaria-queryarr-diffarr-flattenarray-includesarray-unionarray-uniquearray-uniqarrifyassert-plusasn1asapast-types-flowaws-sign2asynckitasync-eachbabel-code-framebabel-coreaws4babel-generatorbabel-helper-builder-react-jsxbabel-helper-builder-binary-assignment-operator-visitorbabel-helper-call-delegatebabel-helper-explode-classbabel-helper-bindify-decoratorsbabel-helper-explode-assignable-expressionbabel-helper-define-mapbabel-helper-function-namebabel-helper-get-function-aritybabel-helper-optimise-call-expressionbabel-helper-hoist-variablesbabel-helper-regexbabel-helper-replace-supersbabel-helpersbabel-messagesbabel-plugin-syntax-async-functionsbabel-plugin-syntax-async-generatorsbabel-plugin-syntax-class-constructor-callbabel-plugin-check-es2015-constantsbabel-plugin-syntax-class-propertiesbabel-plugin-syntax-do-expressionsbabel-plugin-syntax-decoratorsbabel-plugin-syntax-dynamic-importbabel-helper-remap-async-to-generatorbabel-plugin-syntax-export-extensionsbabel-plugin-syntax-jsxbabel-plugin-syntax-function-bindbabel-plugin-syntax-exponentiation-operatorbabel-plugin-syntax-trailing-function-commasbabel-plugin-transform-async-generator-functionsbabel-plugin-syntax-object-rest-spreadbabel-plugin-syntax-flowbabel-plugin-transform-async-to-generatorbabel-plugin-transform-class-constructor-callbabel-plugin-transform-decoratorsbabel-plugin-transform-class-propertiesbabel-plugin-transform-es2015-arrow-functionsbabel-plugin-transform-do-expressionsbabel-plugin-transform-es2015-block-scoped-functionsbabel-plugin-transform-es2015-block-scopingbabel-plugin-transform-es2015-classesaxobject-querybabel-plugin-transform-es2015-destructuringbabel-plugin-transform-es2015-duplicate-keysbabel-plugin-transform-es2015-for-ofbabel-plugin-transform-es2015-function-namebabel-plugin-transform-es2015-computed-propertiesbabel-plugin-transform-es2015-literalsbabel-plugin-transform-es2015-modules-commonjsbabel-plugin-transform-es2015-modules-amdbabel-plugin-transform-es2015-modules-umdbabel-plugin-transform-es2015-object-superbabel-plugin-transform-es2015-modules-systemjsbabel-plugin-transform-es2015-spreadbabel-plugin-transform-es2015-shorthand-propertiesbabel-plugin-transform-es2015-parametersbabel-plugin-transform-es2015-sticky-regexbabel-plugin-transform-es2015-template-literalsbabel-plugin-transform-es2015-typeof-symbolbabel-plugin-transform-es2015-unicode-regexbabel-plugin-transform-exponentiation-operatorbabel-plugin-transform-export-extensionsbabel-plugin-transform-flow-strip-typesbabel-plugin-transform-object-rest-spreadbabel-plugin-transform-function-bindbabel-plugin-transform-react-display-namebabel-plugin-transform-react-jsxbabel-plugin-transform-regeneratorbabel-plugin-transform-strict-modebabel-preset-flowbabel-preset-stage-1babel-preset-stage-2babel-preset-stage-3babel-polyfillbabel-templatebabel-plugin-transform-react-jsx-selfbabel-plugin-transform-react-jsx-sourcebabel-traversebabel-typesbabylonbabel-registerbalanced-matchbcrypt-pbkdfbabel-runtimeboolbaseblock-streambinary-extensionsbrace-expansionbracesboomcaller-pathcaselesscli-cursorcallsitesbuiltin-modulescircular-jsoncochokidarchalkcommanderconcat-mapcli-widthcombined-streamconvert-source-mapcode-point-atconcat-streamcontains-pathconsole-control-stringscss-selectcss-whatcore-jscore-util-isddamerau-levenshteincryptilesdebugdashdashdeep-isdeldefine-propertiesdelayed-streamdeep-extenddom-serializerdetect-libcdomelementtypedomhandlerdelegatesdetect-indentdoctrineecc-jsbnentitiesencodingdomutilses-abstractemoji-regexes5-exterror-exes6-iteratores-to-primitiveescape-string-regexpes6-setes6-mapes6-weak-mapes6-symbolescopeeslint-import-resolver-nodeeslint-config-airbnb-baseeslint-restricted-globalseslint-module-utilsesprimaesqueryespreeesutilsesrecurseevent-emitterestraverseexpand-bracketsexit-hookextendextsprintfexpand-rangefast-levenshteinfbjsfiguresfile-entry-cachefilename-regexextglobfill-rangeflat-cachefor-infind-upfor-ownfs-readdir-recursivefs.realpathfseventsforeachforever-agentform-datafstreamfunction-bindgaugegenerate-functionfstream-ignoregetpassglobalsglob-basegraceful-fsgenerate-object-propertyglob-parentglobbyhar-schemahar-validatorhashawkhas-ansihtmlparser2hoekhome-or-tmphosted-git-infohas-unicodehttp-signatureinflightignoreiconv-liteimurmurhashinheritsinvariantiniinterpretinquireris-arrayishis-builtin-moduleis-bufferis-binary-pathis-callableis-date-objectis-dotfileis-equal-shallowis-extendableis-globis-finiteis-extglobis-numberis-fullwidth-code-pointis-my-json-validis-path-in-cwdis-path-cwdis-path-insideis-posix-bracketis-regexis-primitiveis-propertyis-resolvableis-streamis-typedarrayis-symbolisarrayjs-tokensisobjectisomorphic-fetchjsescisstreamjs-yamljson5json-schemajsbnjson-stable-stringifyjson-stringify-safejsprimjsonifyjsonpointerkind-ofjsx-ast-utilslevnload-json-filelodashlodash.condloose-envifylocate-pathmime-dbmime-typesmsmicromatchmkdirpnanminimatchmute-streamminimistnatural-comparenode-fetchnode-pre-gypnormalize-package-datanth-checknormalize-pathnumber-is-nanobject-assignnoptnpmlogonceoauth-signobject-keysobject.omitonetimeoptionatoros-homediros-tmpdirosenvoutput-file-syncparse-globp-locateparse5parse-jsonpath-is-absolutep-limitpath-existspath-is-insidepath-parseperformance-nowpath-typepinkiepifypkg-dirpluralizepinkie-promiseprivateprelude-lsprocess-nextick-argspreserveprogresspromisepunycodeprop-typesqsread-pkgrandomaticrcreadable-streamregenerateread-pkg-upreaddirpregenerator-transformregexpu-coreregjsparserreadline2rechoirregex-cacheremove-trailing-separatorregenerator-runtimeregjsgenrepeatingrepeat-stringrepeat-elementrequire-uncachedresolverequestrimrafresolve-fromset-blockingrun-asyncrestore-cursorrx-litesemverset-immediate-shimsafe-buffershelljssetimmediateslashsource-mapsntpsignal-exitsource-map-supportslice-ansispdx-license-idsspdx-correctspdx-expression-parsesprintf-jssshpkstringstreamstring-widthstring_decodersupports-colorstrip-ansistrip-json-commentsstrip-bomtartableto-fast-propertiestar-packtrim-rightthroughtext-tabletunnel-agenttough-cookietweetnacltypedarrayuid-numbertype-checkua-parser-jsutil-deprecatev8flagsuser-homeuuidvalidate-npm-package-licenseverrorwrappywhatwg-fetchwide-alignwordwrapwritextend
0.0.1

6 years ago