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

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

妖精的绣舞 提交于 2019-11-27 23:48:54
问题 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 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/gradle/maven-metadata.xml https://jcenter.bintray.com/com/android