Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

256
Visualizações
Fonts not loading in React Native App built with Expo

all,

I am new to react native, currently, I am having an issue with customized fonts usage. My issue is: font files not exists though I already put my fonts files in directory: ./assets/fonts error image

I am following steps of Expo documentation of using customized fonts, which is installing expo-font and using useFont hook. My code as following:

import { Provider } from 'react-redux'

import { PersistGate } from 'redux-persist/integration/react'
import AuthStack from './routes/authStack'
import store, { persistor } from './store'
import { useFonts } from 'expo-font'
import AppLoading from 'expo-app-loading'
import { Font } from 'expo'
import Loading from './components/loading'


function App() {

  const [fontLoaded] = useFonts({
    Arial: require('./assets/fonts/ARIAL.TTF'),
    ArialBold: require('./assets/fonts/ARIALBD.TTF'),
    BlairMd: require('./assets/fonts/BlairMdITCTTMediumFont.ttf'),
  })
  console.log('app font loaded====', fontLoaded)
  return fontLoaded ? (
    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        <AuthStack />
      </PersistGate>
    </Provider>
  ) : (
    <AppLoading />
  )

Everything looks fine for me, so I am thinking might because of project setting reasons so I have tried to restart the project, uninstall all packages and install them again, clear cache by running expo r -c. But nothing works.

I appreciate if anyone can help, thank you

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda