Questions tagged [vector-icons]

33 questions
10
votes
6 answers

Could not find any matches for com.android.tools.build:gradle:2.3.+ as no versions of com.android.tools.build:gradle are available

hi i have a probleme with testing my react native app, this morning it works fine , but when i test it now i get this error: Could not resolve all files for configuration ':react-native-vector-icons:classpath'. Could not find any matches for…
Alaa Mokrani
  • 166
  • 1
  • 11
5
votes
4 answers

How to use material community icons with react-native-vector-icons

I am trying to use the store-front icon in material community icons. However I get an error and it doesn't display the icon. This is my code: import { StatusBar } from "expo-status-bar"; import React from "react"; import { StyleSheet, Text, View }…
anonymous
  • 319
  • 1
  • 5
  • 16
5
votes
4 answers

react-native-router-flux tabs how to change icon of the selected tab?

I'm using the navigation tabs from react-native-router-flux ^4.0.0-beta.21 and react-native-vector-icons. How do I change the icon or change the color of the icon of the selected scene when the scene is selected?
frogLuan
  • 191
  • 1
  • 5
  • 11
4
votes
2 answers

How to use different fonts (more than one) of react-native-vector-icons in one file?

How to use 2 or more fonts (for example, FontAwesome and Entypo) of the react-native-vector-icons in one file?
Eduard
  • 8,437
  • 10
  • 42
  • 64
3
votes
1 answer

console.error : "fontFamily "Material Icons" is not a system font and has not been loaded through Font.loadAsync

I'm trying to add an icon from react-native-vector-icons/MaterialIcons: import Icon from 'react-native-vector-icons/MaterialIcons'; { alert("Add Picture")} …
Alon
  • 75
  • 1
  • 7
3
votes
1 answer

import Icon from 'react-native-vector-icons/Ionicons'

Can I import react-native-vector-icons/font-awesome and react-native-vector-icons/Ionicons on same screen? Basically I want to use both font-awesome and Ionicons icons on same screen for different icons? Example- import ActionButton from…
Kamlesh Tilwani
  • 59
  • 1
  • 2
  • 16
2
votes
1 answer

fontFamily "FontAwesome5Free-Regular" is not a system font and has not been loaded through Font.loadAsync

I'm working on a dental app in which there are icons in almost every screens. But, suddenly all the icons are not visible and just show a box with a question mark. The icon groups keep throwing errors. I changed the way the icons were imported…
Vibha
  • 77
  • 11
2
votes
1 answer

React Native Custom Icons w/ Vector Icons

I'm new to React Native and I'm trying to have icons that are able to have their color changed based on json data received. I've been able to use React Native Vector Icons. However, I have my own icons that I would like to use. On the linked repo…
pianoman102
  • 541
  • 8
  • 22
2
votes
3 answers

Build failed exception when adding vector icons to a react native project

I have to use vector icons in my react native projects, while doing the build (react-native run-android) for android platform I get this error. Did these steps to add vector Icons: npm install react-native-vector-icons –save react-native link Can…
Prasanth
  • 101
  • 2
  • 5
2
votes
0 answers

Cannot use vector icon on wix navigation bar

I can use vector icon everywhere but the navigation bar. It's display nothing. rightButtons: [ { icon: iconsMap['ios-home'], // This one not work id: 'add' }, { icon:…
2
votes
2 answers

How to invert react native vector icon buttons color?

I am using Vector Icons as Icon.Button and I would like to have two Cancel and Accept Icons. I am doing this:
Khalil Khalaf
  • 9,259
  • 11
  • 62
  • 104
1
vote
1 answer

React Native: How to add a vector icon if it's not in the directory?

I use vector icons in my React Native app, and I find the available ones in this directory. I need to add an icon that look this this, but there isn't one in the directory. If I download the svg file at that link, is there a way to add it to my app?…
gkeenley
  • 6,088
  • 8
  • 54
  • 129
1
vote
0 answers

@expo/vector-icon is not loading Android Device

I Have created the expo project with bare minimum for the project. I am using expo vector icons are specified in the document. So it is working well in the Browser and Android Emulator, this is fine. After that i have published the project to expo…
1
vote
1 answer

fontFamily FontAwesome is not a system font and has not been loaded through Font.loadAsync

Everything was working fine before, but not icons are showing up as boxes with an X through them, and I get this error: fontFamily "FontAwesome" is not a system font and has not been loaded through Font.loadAsync. - If you intended to use a system…
1
vote
1 answer

How to center text in an SVG region

I'm attempting to center the text in my SVG region but am not succeeding. Does anyone have any insight on how to optimize this?
1
2 3