Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

130
Views
React native FONT loading without expo

with expo-font we can render fonts asynchronously when the app loads here is the example. Like wise how we can render fonts without expo.

import {AppLoading} from 'expo'
import * as Font from 'expo-font'
import React from 'react';

state = {
  isFontLoaded:false
}
  
async componentDidMount() {
  await Font.loadAsync({
    "Bold":require('./src/fonts/Montserrat-ExtraBold.otf'),
    "Medium":require('./src/fonts/Montserrat-Medium.otf'),
    "Regular":require('./src/fonts/Montserrat-Regular.otf'),
  })
  this.setState({isFontLoaded:true})
}

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

1 - create a folder called "assets", inside it create "fonts" folder and put all your ttf files inside it.

2 - create a file in the root called: react-native.config.js and put insdie it :

        module.exports = {
                project: {
                        ios: {},
                        android: {}
                },
                assets: ['./assets/fonts']
        };

3 - run this command: npx react-native link 4- usage: in stylesheet use fontFamily:"font name", and also fontweight:''

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!