title: React web app to launch and request fullscreen on load - edited
body: <p>I've deiced to reword the question after more hours of attempting hacks and fixes, with no end result. I am using the <a href="https://www.npmjs.com/package/screenfull" rel="nofollow noreferrer">SCREENFULL npm</a> for this. </p>
  
  <p>This web application is a fullscreen interactive UI for a menu system used by employee's. I desired to either have the app launch into fullscreen upon loading OR detect if fullscreen to display prompt button to enable fullscreen and launch the app. Neither seem to be doing the job at all.</p>
  
  <p>My attempts included: </p>
  
  <pre><code>goFullScreen (){
    screenfull.request();
  }
  &lt;button onClick={(e) =&gt; this.goFullScreen()}&gt; enable full screen &lt;/button&gt;
  </code></pre>
  
  <p>works fine. Goes full screen. Now to detect to display the app (loggin page, menu etc) or only the fullscreen button (that way the app can only be view in fullscreen). </p>
  
  <pre><code>screenfull.on('change', () =&gt; {
      if (screenfull.isFullscreen) {
        console.log("it freaken works");
        return ( 
          &lt;h1&gt; hi &lt;/h1&gt;
        )
      } else if (!screenfull.isFullscreen) {
      // display button to go fullscreen
      }
  });
  </code></pre>
  
  <p>Does not return the <code>&lt;h1&gt; hi &lt;/hi&gt;</code> or any thing within return, but the console does log. Strange. </p>
  
  <p>UPDATE: </p>
  
  <p>I decided to try a <code>DidComponentMount</code> (along with javascript's "onLoad" events) : </p>
  
  <pre><code>componentDidMount () {
    screenfull.request();
    console.log("request happened");
  }
  </code></pre>
  
  <p>Well, the request did happen, but the fullscreen did not enable. After debugging an error checking I get a webkitfullscreen error using the screen error detector included in the package. </p>
  
  <p>I have no idea why this won't work, even so why this is so difficult. </p>
  
  <p>Is there a work around for this, or am I just making this a lot harder then it should be?</p>
  
  <p>This web app is only running on a Android tablet and google chrome browser. </p>