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
My Custom icons converted in some Chinese language #1106
Comments
same for me. i used almost every icons by fontawesome5 , so I'm not sure about other fonts went wrong too. |
I just canceled edit font file in android/app/src/main/assets/fonts and it did work. seems like fontfile was broken |
Try this: 1: In file: android/app/build.gradle |
Copy the contents in the node_modules/react-native-vector-icons/Fonts folder to android/app/src/main/assets/fonts (create the folders if you dont have them) 100% works, it works for me |
@ctopher7 Yup, this works for me. I was getting disappointed, many thanks. |
+1 to show that this issue is still happening. Only on Android and on certain devices for us - for the most part foreign devices but there is no consistent pattern of specific devices. For the most part seems like a completely random issue. |
Happening for me on a Samsung tab s6 ??? Edit: npm remove react-native-vector icons and then yarn add react-native-vector-icons worked!!!! |
I may be a bit late, but we did experience that on all devices on Android (implementing custom icon font with Icomoon). Initially our setup for the icon was
^^^ This way, the icons were working on iOS but on Android we experienced the Chinese symbols thing. After changing
to
The icons are now working on both devices. Take into consideration that our font is with capital letter ('Icomoon.ttf') in the android / iOS assets / resources folders. |
THis work for me , step1: apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" ( add this line to android/app/build.gradle) step2: ( add these two line in android/settings.gradle ) step3: ( add this line to android/app/build.gradle) under dependencies |
+1 to the response by @AtanasChachev in solving the issue for Make sure the font file is in the fonts folder: import icoMoonConfig from './config.json';
export const RawIcon = createIconSetFromIcoMoon(
icoMoonConfig,
'Enter_Icon_Name_Here',
'icon_moon.ttf'
); |
Response by @AtanasChachev is perfect and helped me solving this same issue i was having on Android. import icoMoonConfig from './selection.json';
export const RawIcon = createIconSetFromIcoMoon(
icoMoonConfig,
'icomoon', // <- i think it's the default icon set name icomoon gives. Check font file with LibroFont app to check
'CustomIcons.ttf' // <- replace with your font file name
); |
100% indeed.. THANKS! |
yes it worked |
I ran the npx react-native-asset after copying the items to the respective folder. And it worked. |
It worked after accessing the "android" folder and running "gradlew clean". |
Same happens with me.. The best solution is : |
Thanks mate |
try this but still getting same icon in chines, no update |
The text was updated successfully, but these errors were encountered: