My schema defination in file `realmDB.js` :

```
'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]});

```

In my `short_answer.js` file,
I include the `realmDB` by using `import realm from './realmDB';`.

Here,

```
realm.write(() => {
  realm.create('ShortAnswer',{
    question: this.state.short_question,
    answer: this.state.short_answer
  });
});

```

I am new in realm and react native.
The input for the question and answer is taken from two respective `TextInput`. But when i give input and press the save button to save question and answer into the database, the error `Object type 'ShortAnswer' not found in schema.` occurs. What can be done to solve this problem ?