-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Closed
Labels
BugNeeds: Issue TemplateThis issue does not make use of the Issue Template, and may be missing necessary information.This issue does not make use of the Issue Template, and may be missing necessary information.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.
Description
After react native 60 adding custom fonts have changed. Follow this short tutorial to simply add custom fonts in your app.
React Native CLI can be configured by creating a react-native.config.js at the root of the project. Depending on the type of a package, the set of valid properties is different. To add custom fonts we only need to add one line of code: assets: [‘./assets/fonts/’]
Then add your fonts in ./assets/fonts/ directory
And use like this: fontFamily: ‘Roboto-Regular’
Just that simple we have custom fonts in our react native app :)
If you like the article, don’t forget to clap and share it :)
Via Sergo Kupreishvili
e1016, shenl923, fabnascimento, geceba, saadq and 175 morebadri-derakhshan, Keerato, stelaseldano, farshed, egos-ti and 33 morebaterdene-dev, ebellumat, SergiOnGit, nnals, pmadruga and 56 moreegos-ti, CrnogoracIvan, parnekov, euharrison, BallardB and 21 moreegos-ti, doneitas, hannigand, SergiOnGit, YOEL311 and 1 more
Metadata
Metadata
Assignees
Labels
BugNeeds: Issue TemplateThis issue does not make use of the Issue Template, and may be missing necessary information.This issue does not make use of the Issue Template, and may be missing necessary information.Ran CommandsOne of our bots successfully processed a command.One of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.