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

193
Visualizações
Should I import all images into JS file in RN

I have experience with React, but I am currently working on RN application and don't have enough experience with RN. I am thinking should I import all the static images on the app startup.

I am thinking this because I don't want to use images like;

<Image source={require('@/assets/icons/edit.png')} />

I want to create the Icon component and want to use it like this;

<Icon name="edit" />

I think it makes more sense to import the images at the beginning instead of importing them when the Icon component is called.

Is it bad for app performance to import all static images at app startup or is there no difference between importing images in screens and importing all at app startup?

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