Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release版本怎么也显示不出图来(模拟器+真机) #34

Closed
jlapton opened this issue Mar 10, 2017 · 5 comments

Comments

@jlapton
Copy link

commented Mar 10, 2017

IOS,安卓没试,RN是0.41

试过{uri: 'web/xxx.html'}
甚至试过把js和injectJavascript的内容都拼到html里,然后用{html: 拼好的大字符串}
图表都出不来,但是debug就正常。折腾两天了:(

@jlapton

This comment has been minimized.

Copy link
Author

commented Mar 13, 2017

反复排查,似乎跟 #24 是同一个问题,只要option中的属性带function就会在release版本中显示不出图表来,无论是ES6的()=>还是传统function的写法。但是对应的html如果存成文件后用电脑上的浏览器打开也是可以正常显示的,这个问题感觉好奇怪。

@jlapton

This comment has been minimized.

Copy link
Author

commented Mar 14, 2017

修改了这2处,暂时解决了我的问题。。
https://github.com/jlapton/react-native-echarts/blob/master/src/util/toString.js
https://github.com/jlapton/react-native-echarts/blob/master/src/components/Echarts/index.js
但不知道有没有其他副作用,因此暂时没有pull request.

@hnsy2016

This comment has been minimized.

Copy link

commented Jul 25, 2017

感谢大神,参考你的方案解决了~

@hanFengSan

This comment has been minimized.

Copy link

commented Aug 7, 2017

你这改法是有副作用的....ios是好了, android是彻底怎么都不显示了😢

@hanFengSan

This comment has been minimized.

Copy link

commented Aug 7, 2017

只修改toString.js, android就没问题了.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.