Comments (5)
2018-10-23 21:54:36.755 [warn][tid:com.facebook.react.JavaScript] Possible Unhandled Promise Rejection (id: 3):
Error: Unable to open URL: file:///var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/assets/WebChart/index.html
createErrorFromErrorData@/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2011:26
/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:1963:51
__invokeCallback@/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2514:23
/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2261:34
__guard@/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2418:15
invokeCallbackAndReturnFlushedQueue@/var/containers/Bundle/Application/FA35F6C9-8CBD-4D0D-A8C5-2C31B8DFC874/ProjectN.app/main.jsbundle:2260:21
invokeCallbackAndReturnFlushedQueue@[native code]
from react-native-echarts-demo.
我在ios打包过程生成bundle的时候 是assets文件夹下自动生成的WebChart,但是打包后似乎没用用到这个路径
from react-native-echarts-demo.
发现是RN版本问题,如果更新到最新的0.57.3以后,打生成版包后图标显示不出来,但是用你的下载打生产版是可以显示的,我看了一下你的rn版本是0.55,不知道最新的要怎么处理呢
我的package.json:
{
"name": "chartview",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"bundle-ios":"node node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --dev false --bundle-output ./ios/bundle/index.jsbundle --assets-dest ./ios/bundle",
"test": "jest"
},
"dependencies": {
"asap": "^2.0.6",
"number-display": "^1.2.0",
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.3"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.48.1",
"react-test-renderer": "16.6.0-alpha.8af6728"
},
"jest": {
"preset": "react-native"
}
}
from react-native-echarts-demo.
@shenxiaodong13
不是很熟悉ios开发,对你说的打包不太了解
from react-native-echarts-demo.
搞定了 需要在webview增加白名单设置才可以在生产版本看到图
from react-native-echarts-demo.
Related Issues (20)
- 折线图相同的数据不连接 HOT 2
- iOS真机显示较慢 HOT 3
- 点击曲线图-整体闪现变黑,像有点击事件 HOT 1
- this.webView.postMessage is not a function
- debugger模式下看不到图表 HOT 1
- 你好,IOS打包不显示图表,请问该怎么解决,谢谢了.. HOT 1
- -- HOT 2
- legend切换时整体背景变为淡蓝色 HOT 5
- 0.60.4 version WebView 不支持 HOT 2
- 关于IOS中onMessage 回调的数据的问题 HOT 3
- formatter function HOT 1
- 渐变色怎么支持? HOT 1
- 换成新的webview后,在ios上不显示 HOT 3
- release的安装包无法加载图表 HOT 1
- 点击事件不被触发 HOT 2
- 如何显示**地图??? HOT 1
- 安卓模拟器7.0可以显示图标,但是6.0以下的显示空白 HOT 5
- Android 还是无法显示【RN-0.56 也添加了originWhitelist={['*']}】 HOT 2
- 没搞定,请帮忙看一下 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-echarts-demo.