React Native Tutorial - How to use Custom Fonts
ฝัง
- เผยแพร่เมื่อ 6 ก.ค. 2020
- In this React Native tutorial, we'll be using custom fonts in our project.
I will be showing you how to use custom fonts in our react native project.
P L A Y L I S T S
Vector/Vexel Tutorial - • LINEART | Vector Art /...
Javascript Tutorials - • Javascript Tutorial: H...
Web Development - • How to Create a Login ...
S O C I A L M E D I A
/ theblackmatrixdigital
DON'T FORGET TO SUBSCRIBE!
For those running on react-native version >= 0.69.x, Since link is deprecated so react-native link will not work anymore, the command react-native link is replaced by npx react-native-asset.
God bless you
Wow, that's a lot easier than I thought. Works great, thx for sharing this!
Thank you. Worked great.
This helped me a lot thank you.
Before it got started, I talked to myself: if it works, I'll subscribe.
Done, man!
It helped a lot. Thank you so much
love the tutorial !!
Thanks man Its worked
Thankyou for the tutorial
Hey , thank u man !
Thank you for this video
Tks from Brazil - São Paulo!
this video helped me a lot....... thanks man
Glad to hear it!
Thanks :)
at last! Great tutorial...
Glad it helped!
Thank you soooo much
Great video bruh !
Glad you enjoyed
this is helpful. thanks
Glad it was helpful!
thanks a lot sir,
whoah nice!
are bhai bahi bahi bahi.... work kr rha hai , tx
thanks a lot
Thank You
thanks :)
Great Video
Glad you enjoyed it
thank you very much ! do you have same tutorial for ios?
doesnt work, and no error,
here i dont know why
do I need to use 'npx react-native run android' if i am using expo app
npx react-native link
error: unknown command 'link'
iOS: error, unrecognized family
will this work with expo application?
From where you got the fonts which you have pasted in the fonts folder , Incomplete vdo bro
how to change default font for whole project??
Hey! Great tutorial! However, I followed every single step (on expo) as you did and I still got the following error: "fontFamily:"FontType" is not a system font and has not been loaded through Font.loadAsync. Do you have any idea how to solve this?
same problem !!
This method does not work for Expo
This method for IOS & android not for expo
use expo fonts
please help me I have an error when running npx react-native run-android like the video above if anyone knows how to solve it please let me know🙏
`error Android project not found. Are you sure this is a React Native project? If your Android files are located in a non-standard location (e.g. not inside 'android' folder), consider setting `project.android.sourceDir` option to point to a new location.
info Run CLI with --verbose flag for more details.
Unrecognized command "link". when i run given command facing error
I faced the same problem, apparently since React 0.60 link is no longer needed. I had to run npx react-native-asset command which installed the latest react-native-assets package then it worked. Hopefully this helps
Todo o processo da certo, mais na tela a fonte nao carrega kkk
i dont get an error but somehow it didnt worked out..
where is ios process??
npx react-native link
react-native\cli.js
error The "path" argument must be of type string. Received undefined.
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
What can it be?
I think react-native link is no more supported
So You have to run npx react-native-assets instead to link all the assets
npx react-native-asset without the s
What about applying weight to font?
you can apply by picking the fonts with the right weight straight from google.
does this work with expo?
Maybe. ☺️
yes
doesn't work for me
after running : npx react-native link
i got :
info Linking assets to ios project
info Linking assets to android project
success Assets have been successfully linked to your project
however, i can not use the font family. by the font family wasn’t added to : app/src/main/asset/fonts!!!!
Thanks alot
Most welcome
iOS: error, unrecognized family