title: Parse can't find localStorage variable in React Native
body: <p>I have a React Native app that works fine with the Chrome debugger open. Once I disable it though, I keep getting the following error whenever I try to make any Parse calls:</p>
  
  <p><a href="https://i.stack.imgur.com/i88h2.png" rel="noreferrer"><img src="https://i.stack.imgur.com/i88h2.png" alt="React Native and Parse error"></a></p>
  
  <p>The call stack leads back to the following code attempting to log a user in:</p>
  
  <pre><code>Parse.User.logIn(
    email,
    password,
    {
      success: function(res) {
        console.log('success');
      },
      error: function(error) {
        console.log(error.code + ' ' + error.message);
      }
    }
  );
  </code></pre>
  
  <p>I've tried removing the console statements, in case the error had to do with the console not being available, but no avail. This happens with other Parse calls, and always has to do with the missing <code>localStorage</code> variable.</p>
  
  <p>Thanks in advance for any help!</p>
  
  <p>UPDATE:</p>
  
  <p>Looks like there is a similar issue with Firebase. <a href="https://groups.google.com/forum/#!topic/firebase-talk/Y_usPRhOIYA" rel="noreferrer">https://groups.google.com/forum/#!topic/firebase-talk/Y_usPRhOIYA</a></p>
  
  <p>They mention that the problem has to do with there not being a polyfill for localStorage.</p>