GT2/Ejectable/node_modules/@expo/vector-icons
Ren Juan 06c1a5835d set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
..
build set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
AntDesign.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
AntDesign.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Entypo.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Entypo.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
EvilIcons.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
EvilIcons.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Feather.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Feather.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
FontAwesome.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
FontAwesome.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
FontAwesome5.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
FontAwesome5.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Fontisto.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Fontisto.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Foundation.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Foundation.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Ionicons.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Ionicons.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
LICENSE set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
MaterialCommunityIcons.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
MaterialCommunityIcons.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
MaterialIcons.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
MaterialIcons.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Octicons.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Octicons.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
README.md set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
SimpleLineIcons.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
SimpleLineIcons.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Zocial.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
Zocial.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
createIconSet.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
createIconSet.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
createIconSetFromFontello.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
createIconSetFromFontello.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
createIconSetFromIcoMoon.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
createIconSetFromIcoMoon.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
createMultiStyleIconSet.d.ts set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
createMultiStyleIconSet.js set clean start from expo 4.10 2021-08-16 00:14:59 +00:00
package.json set clean start from expo 4.10 2021-08-16 00:14:59 +00:00

README.md

@expo/vector-icons

This library is a compatibility layer around @oblador/react-native-vector-icons to work with the Expo asset system. If you're using React Native without Expo, you have no need for this library -- carry on! (or maybe check out Expo).

👀: this library does not provide access to react-native-vector-icon's Icon.getImageSource() function for generating images from icons at runtime (for context on why, see this issue). If you find yourself needing an icon in the form of an image rather than text, you should generate that image yourself and bundle it with your app.

Resources

Usage

This library is part of the expo package, so if you are using expo you can simply use it like so

import React from 'react';
import { Ionicons } from '@expo/vector-icons';

export default class IconExample extends React.Component {
  render() {
    return <Ionicons name="md-checkmark-circle" size={32} color="green" />;
  }
}

for more usage see Expo icons documentation

Maintainers

How to upgrade the react-native-vector-icons version

I'll be honest with you, it's not straightforward. You should set aside about an hour to do this.

  1. Clone react-native-vector-icons
  2. Copy files from the cloned directory into src/vendor/react-native-vector-icons, except the dotfiles.
  3. Run git status and look at the untracked files. Remove anything that doesn't seem needed. For example, remove package.json, react-native.config.js, react-native.osx.js. Things to look out for are new icon fonts or new create-* files.
  4. Run git diff **/*.js - do any of the changes look like they should be synced over to the equivalent .ts files in src?/
  • ToolBarAndroid and TabBarIOS are not included in @expo/vector-icons
  • Neither are the native vendor font loading or image source related methods.
  • Probably there won't be anything important. The main thing to look out for are user-facing API changes, the @expo/vector-icons internals are different enough that you don't need to worry about it.
  • Were any dependencies added? Check imports against those in the current package.json, see why they were added - maybe they support the bin scripts, in which case we need them.
  • TypeScript/Flow types for Icon/Icon.Button components may need to be updated.
  1. Run yarn when you're done and it'll copy vendor files over to build.
  2. Go to the website directory, test it out by changing the @expo/vector-icons version to "../" (TODO: investigate this quirk!). If new icons were added, ensure that they work here.
  • While you're here, it would be kind of you to update the Expo SDK version to latest.
  1. Publish an alpha release, switch back the version in the website to that version.
  2. Open a PR, have someone else like @brentvatne look at it. If it's good to go, publish the final version, update the website version again, then merge. The website will be deployed when you merge to master.

How to deploy the website

Create a commit on master.