【发布时间】:2017-04-20 05:47:27
【问题描述】:
我正在使用 React Native 制作基于 js 的电子表格引擎。该库使用全局文档 (document.getElementById) 对象来关联 DOM 属性。但是,我收到以下错误。
Can't find variable document
我知道 React Native 中没有“文档对象”。有没有办法通过document 对象访问DOM,以便我可以在应用程序中包含我的js 文件。或者,有没有其他相同的方法?
我已尝试使用 WebView,但 document 对象仍未定义。
【问题讨论】:
标签: react-native