How to use the react-native-vector-icons/EvilIcons.getImageSource function in react-native-vector-icons

To help you get started, we’ve selected a few react-native-vector-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jacklam718 / react-native-button-component / ButtonExample / src / components / Icons.js View on Github external
function loadIcons() {
  const iconSet = [
    Icon.getImageSource('chevron-left', 20, 'white'),
    Icon.getImageSource('chevron-right', 20, 'white'),
    Icon.getImageSource('like', 20, 'white'),
    Icon.getImageSource('like', 20, '#7F91A7'),
    Icon.getImageSource('exclamation', 20, 'white'),
    Icon.getImageSource('gear', 20, 'white'),
    Icon.getImageSource('redo', 20, 'white'),
    Icon.getImageSource('close', 20, 'white'),
    Icon.getImageSource('check', 20, 'white'),
  ];

  Promise.all(iconSet).then(sources => {
    Icons.back = sources[0];
    Icons.forward = sources[1];
    Icons.like = sources[2];
    Icons.likeBlack = sources[3];
    Icons.exclamation = sources[4];
    Icons.gear = sources[5];
    Icons.redo = sources[6];
    Icons.close = sources[7];
    Icons.check = sources[8];
github jacklam718 / react-native-button-component / ButtonExample / src / components / Icons.js View on Github external
function loadIcons() {
  const iconSet = [
    Icon.getImageSource('chevron-left', 20, 'white'),
    Icon.getImageSource('chevron-right', 20, 'white'),
    Icon.getImageSource('like', 20, 'white'),
    Icon.getImageSource('like', 20, '#7F91A7'),
    Icon.getImageSource('exclamation', 20, 'white'),
    Icon.getImageSource('gear', 20, 'white'),
    Icon.getImageSource('redo', 20, 'white'),
    Icon.getImageSource('close', 20, 'white'),
    Icon.getImageSource('check', 20, 'white'),
  ];

  Promise.all(iconSet).then(sources => {
    Icons.back = sources[0];
    Icons.forward = sources[1];
    Icons.like = sources[2];
    Icons.likeBlack = sources[3];
    Icons.exclamation = sources[4];
github jacklam718 / react-native-button-component / ButtonExample / src / components / Icons.js View on Github external
function loadIcons() {
  const iconSet = [
    Icon.getImageSource('chevron-left', 20, 'white'),
    Icon.getImageSource('chevron-right', 20, 'white'),
    Icon.getImageSource('like', 20, 'white'),
    Icon.getImageSource('like', 20, '#7F91A7'),
    Icon.getImageSource('exclamation', 20, 'white'),
    Icon.getImageSource('gear', 20, 'white'),
    Icon.getImageSource('redo', 20, 'white'),
    Icon.getImageSource('close', 20, 'white'),
    Icon.getImageSource('check', 20, 'white'),
  ];

  Promise.all(iconSet).then(sources => {
    Icons.back = sources[0];
    Icons.forward = sources[1];
    Icons.like = sources[2];
    Icons.likeBlack = sources[3];
    Icons.exclamation = sources[4];
    Icons.gear = sources[5];
    Icons.redo = sources[6];
github jacklam718 / react-native-button-component / ButtonExample / src / components / Icons.js View on Github external
function loadIcons() {
  const iconSet = [
    Icon.getImageSource('chevron-left', 20, 'white'),
    Icon.getImageSource('chevron-right', 20, 'white'),
    Icon.getImageSource('like', 20, 'white'),
    Icon.getImageSource('like', 20, '#7F91A7'),
    Icon.getImageSource('exclamation', 20, 'white'),
    Icon.getImageSource('gear', 20, 'white'),
    Icon.getImageSource('redo', 20, 'white'),
    Icon.getImageSource('close', 20, 'white'),
    Icon.getImageSource('check', 20, 'white'),
  ];

  Promise.all(iconSet).then(sources => {
    Icons.back = sources[0];
    Icons.forward = sources[1];
    Icons.like = sources[2];
    Icons.likeBlack = sources[3];
    Icons.exclamation = sources[4];
    Icons.gear = sources[5];
    Icons.redo = sources[6];
    Icons.close = sources[7];
github jacklam718 / react-native-button-component / ButtonExample / src / components / Icons.js View on Github external
function loadIcons() {
  const iconSet = [
    Icon.getImageSource('chevron-left', 20, 'white'),
    Icon.getImageSource('chevron-right', 20, 'white'),
    Icon.getImageSource('like', 20, 'white'),
    Icon.getImageSource('like', 20, '#7F91A7'),
    Icon.getImageSource('exclamation', 20, 'white'),
    Icon.getImageSource('gear', 20, 'white'),
    Icon.getImageSource('redo', 20, 'white'),
    Icon.getImageSource('close', 20, 'white'),
    Icon.getImageSource('check', 20, 'white'),
  ];

  Promise.all(iconSet).then(sources => {
    Icons.back = sources[0];
    Icons.forward = sources[1];
    Icons.like = sources[2];
    Icons.likeBlack = sources[3];
    Icons.exclamation = sources[4];
    Icons.gear = sources[5];
github jacklam718 / react-native-button-component / ButtonExample / src / components / Icons.js View on Github external
function loadIcons() {
  const iconSet = [
    Icon.getImageSource('chevron-left', 20, 'white'),
    Icon.getImageSource('chevron-right', 20, 'white'),
    Icon.getImageSource('like', 20, 'white'),
    Icon.getImageSource('like', 20, '#7F91A7'),
    Icon.getImageSource('exclamation', 20, 'white'),
    Icon.getImageSource('gear', 20, 'white'),
    Icon.getImageSource('redo', 20, 'white'),
    Icon.getImageSource('close', 20, 'white'),
    Icon.getImageSource('check', 20, 'white'),
  ];

  Promise.all(iconSet).then(sources => {
    Icons.back = sources[0];
    Icons.forward = sources[1];
    Icons.like = sources[2];
    Icons.likeBlack = sources[3];
    Icons.exclamation = sources[4];
    Icons.gear = sources[5];
    Icons.redo = sources[6];
    Icons.close = sources[7];
    Icons.check = sources[8];
  });
}
github jacklam718 / react-native-button-component / ButtonExample / src / components / Icons.js View on Github external
function loadIcons() {
  const iconSet = [
    Icon.getImageSource('chevron-left', 20, 'white'),
    Icon.getImageSource('chevron-right', 20, 'white'),
    Icon.getImageSource('like', 20, 'white'),
    Icon.getImageSource('like', 20, '#7F91A7'),
    Icon.getImageSource('exclamation', 20, 'white'),
    Icon.getImageSource('gear', 20, 'white'),
    Icon.getImageSource('redo', 20, 'white'),
    Icon.getImageSource('close', 20, 'white'),
    Icon.getImageSource('check', 20, 'white'),
  ];

  Promise.all(iconSet).then(sources => {
    Icons.back = sources[0];
    Icons.forward = sources[1];
    Icons.like = sources[2];
    Icons.likeBlack = sources[3];
    Icons.exclamation = sources[4];
    Icons.gear = sources[5];
    Icons.redo = sources[6];
    Icons.close = sources[7];
    Icons.check = sources[8];
  });