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
icon not showing #710
Comments
Hey @arctushar this is usually a linking issue. Are you in a |
react-native init |
As @iRoachie said it's probably a linking issue. Try this command in your project root directory:
|
Closing this as it has been inactive for a month, feel free to reopen it if it still doesn't work |
i have same problem here, pls re open it. after i ejecting my app, the react native element icons doesnt work |
same with SearchBar icons (using v1.0.0-beta3) |
@dorman99 @MaxInMoon Be sure you have followed these instructions https://github.com/react-native-training/react-native-elements/issues/620#issuecomment-355530210 |
@xavier-villelegier thanks, my problem comes from the SearchBar component (#1019) |
this works, follow the tutorial below |
I can't fix it, although I follow this link https://github.com/oblador/react-native-vector-icons. Anyone can give me solutions, please. |
Me to, I followed steps properly from https://github.com/oblador/react-native-vector-icons |
Manual installation worked for me. Copy fonts you want to use into |
This worked for me even though RN 0.60 now offers autolinking, you will have to manually do the linking because autolinking still has some issues. |
If you are using RN 0.60, just link it manually because the fonts assets not automatically linked by jetifier. |
This works, RN 0.60 or above links automatically but still for fonts assets you have to link them manually. |
Thankyou soo much, wasted whole day on this, just had to link as you said. |
Open android/app/build.gradle and add the following:
This worked for me. |
Thank you so much, this worked for me |
Worked for me EDIT: It worked perfectly for the build, but to release with RN 0.72 I needed to add an update patch in the diff --git a/node_modules/react-native-vector-icons/fonts.gradle b/node_modules/react-native-vector-icons/fonts.gradle
index 5485fac..ef3ccb3 100644
--- a/node_modules/react-native-vector-icons/fonts.gradle
+++ b/node_modules/react-native-vector-icons/fonts.gradle
@@ -26,6 +26,10 @@ afterEvaluate {
android.applicationVariants.all { def variant ->
def targetName = variant.name.capitalize()
+ def lintVitalAnalyzeTask = tasks.findByName("lintVitalAnalyze${targetName}")
+ if (lintVitalAnalyzeTask) {
+ lintVitalAnalyzeTask.dependsOn(fontCopyTask)
+ }
def generateAssetsTask = tasks.findByName("generate${targetName}Assets")
generateAssetsTask.dependsOn(fontCopyTask)
}
You can see more here: oblador/react-native-vector-icons#1508 (comment) |
Icons are now being displayed on android but not being displayed on IOS files any one faced similar issue. |
Thank you very much, it works for me as well! 👏👏 |
Icon not showing, no error showing, icon installation done.
import { List, ListItem, SearchBar, Button,Avatar,Icon,SocialIcon} from "react-native-elements";
title='Some Twitter Message'
button
type='twitter'
/>
Also in node_modules\react-native-vector-icons\Fonts I have FontAwesome and other fonts
Also Android module react-native-vector-icons is already linked
The text was updated successfully, but these errors were encountered: