react-native-vector-icons

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

允我心安 提交于 2021-01-28 01:35:57
问题 I'm trying to add an icon from react-native-vector-icons/MaterialIcons: import Icon from 'react-native-vector-icons/MaterialIcons'; <View style={styles.picture}> { <Icon name="add-circle" onPress={() => alert("Add Picture")} color="green" /> } </View> but i'm getting: console.error : "fontFamily "Material Icons" is not a system font and has not been loaded through Font.loadAsync I tried using Font.loadAsync await Font.loadAsync({'MaterialIcons': require('@expo/vector-icons/fonts/MaterialIcons

react-native unrecognized font family FontAwesome5Pro-Solid

久未见 提交于 2019-12-13 19:17:05
问题 I use react-native-vector-icons for icons import Icon from 'react-native-vector-icons/FontAwesome5Pro' All FontAwesome web fonts I put to assets/fonts and add this folder to rnpm section in package.json "rnpm": { "assets": [ "./assets/Fontawesome/webfonts/" ] } Then I run react-native link All this fonts I see in info.plist but when <Icon name="user" solid /> I see error unrecognized font family FontAwesome5Pro-Solid. It's funny, but on my old macbook all works fine, I just clone my

RN 0.59.5 with RN-vector-icons 6.4.2 throwing BackAndroid is deprecated and has been removed from this package. Use BackHandler instead

℡╲_俬逩灬. 提交于 2019-12-11 21:14:52
问题 I just installing newer react native with RNVI and i get this error when using RNVI, BackAndroid is deprecated and has been removed from this package. Use BackHandler instead but everything is fine when i remove import FontAwesome from 'react-native-vector-icons/FontAwesome'; and <FontAwesome name="icon_name"/> I've tried to search BackAndroid using vscode and even on RNVI github repo, but I can't find any BackAndroid How can i fix this issue? 回答1: BackAndroid is Deprecated Don't Worry we

Importing 'react-native-vector-icon' results 'Unable to resolve module '@expo/vector-icons' error

最后都变了- 提交于 2019-12-11 10:08:52
问题 error: bundling failed: Error: Unable to resolve module `@expo/vector-icons/Ionicons` from `E:\React Projects\Tourism\src\screens\TouristInformation\TouristInformation.js`: Module `@expo/vector-icons/Ionicons` does not exist in the Haste module map This might be related to https://github.com/facebook/react-native/issues/4968 To resolve try the following: 1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`. 3. Reset

Could not resolve all files for configuration ':react-native-vector-icons:classpath'

怎甘沉沦 提交于 2019-12-08 07:18:52
问题 I'm facing the following error when trying to run react-native run android The console acuses: What went wrong: A problem occurred configuring project ':react-native-vector-icons'. > Could not resolve all files for configuration ':react-native-vector-icons:classpath'. > Could not find any matches for com.android.tools.build:gradle:2.3.+ as no versions of com.android.tools.build:gradle are available. Searched in the following locations: https://jcenter.bintray.com/com/android/tools/build