title: Realm: user must be of type 'object', got (undefined)
body: <p>Every time I erase/restart my simulation I get the above error message. Is there a way to insert a dummy user object that allows me to parse through the 'const' and get to the actual login?</p>
  
  <pre><code>import React from 'react';
  import { StyleSheet, AppRegistry, TextInput, Text, View, Alert, } from 'react-native';
  import Realm from 'realm';
  
  logBookSchema = {schema: [{
        name: 'LogBook',
        properties: {
          logNum: 'int',
        },
      }]
  }
  
  class LogBook extends Realm.Object {}
  
  const realm = new Realm({sync: {user: Realm.Sync.User.current, url: 'realm://localhost:9080/~/logbook',error: err =&gt; alert(err)},logBookSchema});
  
  export default class App extends React.Component {
    render() {
      Realm.Sync.User.login('http://localhost:9080', 'test@user2.com', 'test').then (user =&gt; {
          Realm.open({logBookSchema, sync: {user: user, url: 'realm://localhost:9080/~/logbook',error: err =&gt; alert(err)}});
        });
  
    return (
       &lt;View&gt;&lt;Text&gt;&lt;/Text&gt;&lt;Text&gt;Logged in&lt;/Text&gt;&lt;/View&gt;
    )
    }
  }
  </code></pre>