我试图在React Native中使用Lightning Chart,但我立即遇到了错误。
我用yarn安装了@arction/lcjs,然后在我的App.js顶部写道...
import { lightningChart } from '@arction/lcjs';
然后我收到的错误消息是...
Error: Requiring module "node_modules/@arction/lcjs/dist/lcjs.js", which threw an exception: TypeError: Si.atob is not a function. (In 'Si.atob(aV[t[0]][r].toString())', 'Si.atob' is undefined)
Process terminated. Press <enter> to close the window
如有任何建议,我们将不胜感激!
发布于 2021-07-26 15:53:59
LightningChart JS不能直接与React Native兼容。您需要将其加载到WebView中。对于React Native兼容的WebView实现,您可以使用像React Native WebView这样的库。在WebView中,可以像在浏览器中一样使用LightningChart JS。
https://stackoverflow.com/questions/68516098
复制相似问题