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
Copy
export const FONT_SIZE: Record<FontSize, number> = {xxxs: moderateScale(6),...};export const FONT: Record<Font, string> = {// Implement your custom fonts here:// It is really easy to use with this way.sm: 'SpaceMono-Regular',};
5
Finally, you can use the FONT_SIZE and FONT objects to style your fonts. Like below: