-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ListItem:Unrecognized font family 'Material Icons' #503
Comments
@wuyunqiang We use
|
@iRoachie yes I link. |
@wuyunqiang What version of react-native-vector-icons are you using? |
@binoy14 |
@wuyunqiang did you try removing node_modules and reinstalling it? Could you try using snack.expo.io to check if you can reproduce this bug there. |
I have the same issue. How do I reinstall node_modules? |
@myerzman |
I'm also experiencing this issue, I just recently fresh installed my machine. It happens when using any Icon component.
package.json
I also ran I am receiving this error on IOS. I tried to import expos icons as a workaround
It still gave me the same error. |
@k4ch0w Using Have a look at this example https://github.com/react-native-training/react-native-elements/issues/490#issuecomment-318164502 You can also read this part of the Expo documentation https://docs.expo.io/versions/v19.0.0/guides/preloading-and-caching-assets.html |
@k4ch0w please see @xavier-villelegier's answer above. When using Expo, the fonts need to be loaded first before you can render anything with the fonts. |
@xavier-villelegier Thanks Xavier! That fixed it for me. |
Need to link fonts into your project. This worked for me. Source: https://github.com/oblador/react-native-vector-icons#installation Browse to node_modules/react-native-vector-icons and drag the folder Fonts (or just the ones you want) to your project in Xcode. Make sure your app is checked under "Add to targets" and that "Create groups" is checked if you add the whole folder. Note: you need to recompile your project after adding new fonts, also ensure that they also appear under Copy Bundle Resources in Build Phases. If you want to use the TabBar/NavigatorIOS integration or use getImageSource, then you need to add RNVectorIcons.xcodeproj to Libraries and add libRNVectorIcons.a to Link Binary With Libraries under Build Phases. More info and screenshots about how to do this is available in the React Native documentation. |
I have this same issue and it still wasn't working. Finally I opened Xcode and realized after running the |
read https://www.npmjs.com/package/react-native-vector-icons can resolve the problem |
I had to remove |
@kmcgill88 Thanks :)) |
I fix this problem by running "reac-native link" command follow the instruction of https://www.npmjs.com/package/react-native-vector-icons. |
@kwes01 This was quickly fixed in the |
You have to link to library: react-native link react-native-vector-icons |
Description
code:
<List containerStyle={{ marginBottom: 20 }}>
{
list.map((l, i) => (
<ListItem
roundAvatar
onPress={() => console.log('Pressed')}
avatar={l.avatar_url}
key={i}
title={l.name}
subtitle={l.subtitle}
rightTitle={'right'}
/>
))
}
android:

ios:android:

ios:"react": "16.0.0-alpha.6",
"react-native": "0.44.3",
"react-native-elements": "^0.14.0",
"react-native-vector-icons": "^4.2.0",
Solution
I set hideChevron: false.
The text was updated successfully, but these errors were encountered: