React native 如何将JSX组件推送到领域列表数据对象中?

React native 如何将JSX组件推送到领域列表数据对象中?,react-native,realm,jsx,realm-list,React Native,Realm,Jsx,Realm List,例如,假设我有这样一个模式: class ComponentSchema{}; ComponentSchema.schema = { name: 'Component', properties: { jsx: 'What goes here?' } } class ContainerSchema{}; ContainerSchema.schema = { name: 'JSXComponents', properties: { components: {ty

例如,假设我有这样一个模式:

class ComponentSchema{};
ComponentSchema.schema = {
  name: 'Component',
  properties: {
    jsx: 'What goes here?'
  }
}

class ContainerSchema{};
ContainerSchema.schema = {
  name: 'JSXComponents',
  properties: {
    components: {type: 'list', objectType: 'Component'}
  }
}
是否有办法将组件推送到
JSXComponents.components
列表中,以便它可以存储表示以下内容的内容:

{0: {jsx: <Component/>}, 1: {jsx: <OtherComponent/>}}
{0:{jsx:},1:{jsx:}
如果JSX组件没有特定的数据类型,是否有解决方法