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

173
Visualizações
React full screen

I need to develop a full-screen web app. I have tried:

import screenfull from "screenfull";

const HomePage = () => {

    if (screenfull.isEnabled) {
      screenfull.request();
    }
    
    return( 
    component...
    )
}
export default HomePage;

But when the page loads, it doesn't put it in full screen. I also reported the same function in another route. (Component2 for example).

import screenfull from "screenfull";

const Component2 = () => {

   if (screenfull.isEnabled) {
       screenfull.request();
   }
        
   return( 
   component...
   )
}
export default Component2;

On clicking anywhere on the HomePage the browser renders in Component2, after this event my app becomes full screen.

How do I get my app to start full screen from launch?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Perhaps this is what you are looking for: https://web.dev/native-hardware-fullscreen/. You can use a useEffect to request fullscreen on the document body when it first loads. Hope that helps.

about 4 years ago · Juan Pablo Isaza Relatório
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