React native 预填充领域文件的正确路径是什么?

React native 预填充领域文件的正确路径是什么?,react-native,realm,React Native,Realm,我有一个预填充了正确数据的领域文件。该文件定义了以下架构: import Realm from 'realm'; let WordSchema = { name: 'Word', properties: { word: 'string', definition: 'string' } } let BookmarkSchema = { name: 'Bookmark', properties: { words: {type: 'list', obje

我有一个预填充了正确数据的领域文件。该文件定义了以下架构:

import Realm from 'realm';

let WordSchema = {
  name: 'Word',
  properties: {
    word: 'string',
    definition: 'string'
  }
}

let BookmarkSchema = {
  name: 'Bookmark',
  properties: {
    words: {type: 'list', object: 'Word'}
  }
}

export default new Realm({
  path: 'dictionary.realm',
  schema: [WordSchema, BookmarkSchema]
}
我在尝试绑定预填充的领域数据库时遇到了巨大的困难

我有正确的路径名吗?领域文件与脚本位于同一文件夹中

谢谢你阅读我的问题