title: How to fix error: Cant find variable document when I run react vis network in android?
body: <p>I know that exist other questions like this, but I didn't find any question like this related with react-vis-network, none of the answers that I found solve my problem.</p>
  <p>I am trying to use react vis network in android, but when I run my error I get the error message &quot;can't find variable document when evaluating react-vis-network&quot;.</p>
  <p>How can I fix this?</p>
  <p>My code:</p>
  <pre><code>import React, { Component } from 'react';
  import { Network, Node, Edge } from 'react-vis-network';
  
  export default class MyNetwork extends Component {
    render() {
      return (
        &lt;Network&gt;
          &lt;Node id=&quot;vader&quot; label=&quot;Darth Vader&quot; /&gt;
          &lt;Node id=&quot;luke&quot; label=&quot;Luke Skywalker&quot; /&gt;
          &lt;Node id=&quot;leia&quot; label=&quot;Leia Organa&quot; /&gt;
          &lt;Edge id=&quot;1&quot; from=&quot;vader&quot; to=&quot;luke&quot; /&gt;
          &lt;Edge id=&quot;2&quot; from=&quot;vader&quot; to=&quot;leia&quot; /&gt;
        &lt;/Network&gt;
      );
    }
  }
  </code></pre>
  <p>I thank you in advance.</p>