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

170
Views
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 answers
Answer question

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 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!