title: React Native - document is not defined
body: <p>I am porting a mobile app from Cordova to React Native. The Cordova app depends on a 3rd party JavaScript library <a href="https://developer.kandy.io/docs/javascript/2-7" rel="nofollow noreferrer">Kandy.Io</a> </p>
  
  <p>This library makes use of the global <code>document</code> object. When I import that library into my React Native project, I see the error :</p>
  
  <pre><code>document is not defined 
  </code></pre>
  
  <p>I understand that there is no DOM like in a browser environment, but is there any way to use the document object in a React Native project so that I can continue using this library?</p>