Core Features
Fonts
Customize your app fonts
You can use the FONT_SIZE
object to define the size of the fonts.
1
First, go to the assets/fonts
folder.
2
Add your custom fonts there.
3
Then, go to the constants/AppConstants.ts
file.
4
Define your custom fonts there. Like below:
constants/AppConstants.ts
5
Finally, you can use the FONT_SIZE
and FONT
objects to style your fonts. Like below:
components/Text.tsx
6
Make sure your app/_layout.tsx file includes the fontFamily
prop. Like below:
app/_layout.tsx
I am using my custom fonts like that and it is really easy to use.