React native 在React本机代码中使用React.DOM

React native 在React本机代码中使用React.DOM,react-native,reactjs-native,React Native,Reactjs Native,我刚刚开始使用react原生Android应用程序。我想使用React.DOM而不是.jsx代码 例如,我想使用React.DOM包装器,而不是下面的.jsx语法 render: function() { return (<View style={styles.container}> <Text> This is React-Native </Text> </View>) }}); render

我刚刚开始使用react原生Android应用程序。我想使用React.DOM而不是.jsx代码

例如,我想使用React.DOM包装器,而不是下面的.jsx语法

render: function() {
  return (<View style={styles.container}>
      <Text>
        This is React-Native
      </Text>
    </View>)
}});
render:function(){
返回(
这是本地的
)
}});
当我添加var-DOM=require('react-DOM')时,我开始看到错误 需要未知模块“react/lib/ReactDOM”。如果确定模块在那里,请尝试重新启动打包程序“

我重建、重新部署、重新启动了开发服务器。。运气不好,不知道该如何把这个包裹捆起来。。感谢您的建议


谢谢

如果有一种方法可以使用react原生Webview与react dom一起工作,那么这只是一个想法。