title: Object type 'ShortAnswer' not found in schema in Realm React Native
body: <p>My schema defination in file <code>realmDB.js</code> :</p>
  
  <pre><code>'use strict';
  var Realm = require('realm');
  
  class ShortAnswer extends Realm.Object{}
  ShortAnswer.schema = {
    name: 'ShortAnswer',
    properties: {
    question: 'string',
    answer: 'string'
   }
  };
  export default new Realm({schema: [ShortAnswer]});
  </code></pre>
  
  <p>In my <code>short_answer.js</code> file,
  I include the <code>realmDB</code> by using <code>import realm from './realmDB';</code>.</p>
  
  <p>Here,</p>
  
  <pre><code>realm.write(() =&gt; {
    realm.create('ShortAnswer',{
      question: this.state.short_question,
      answer: this.state.short_answer
    });
  });
  </code></pre>
  
  <p>I am new in realm and react native.
  The input for the question and answer is taken from two respective <code>TextInput</code>. But when i give input and press the save button to save question and answer into the database, the error <code>Object type 'ShortAnswer' not found in schema.</code> occurs. What can be done to solve this problem ? </p>