title: "Super expression must either be null or a function, not object" error
body: <p>I use example code from <a href="https://github.com/realm/realm-js/blob/master/examples/ReactExample/components/realm.js" rel="nofollow noreferrer">https://github.com/realm/realm-js/blob/master/examples/ReactExample/components/realm.js</a>.</p>
  
  <pre><code>'use strict';
  
  import Realm from 'realm';
  
  class Todo extends Realm.Object {}
  Todo.schema = {
      name: 'Todo',
      properties: {
          done: {type: 'bool', default: false},
          text: 'string',
      },
  };
  
  class TodoList extends Realm.Object {}
  TodoList.schema = {
      name: 'TodoList',
      properties: {
          name: 'string',
          items: {type: 'list', objectType: 'Todo'},
      },
  };
  
  export default new Realm({schema: [Todo, TodoList]});
  </code></pre>
  
  <p>When I run this, I got </p>
  
  <blockquote>
    <p>Super expression must either be null or a function, not object</p>
  </blockquote>
  
  <p>error.</p>
  
  <p><a href="https://i.stack.imgur.com/oByT7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oByT7.png" alt="enter image description here"></a></p>
  
  <p>I am using</p>
  
  <pre><code>"react": "^0.14.8",
  "react-native": "^0.25.1",
  "realm": "^0.12.0",
  </code></pre>
  
  <p>How can I solve this issue? Thank you for any tip!</p>