-
Notifications
You must be signed in to change notification settings - Fork 80
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
Not working if expo published #3
Comments
It seems that the html file load js or css as relative path, it works when serve on local dev server, but can not reference in published bundle |
Hi @Zuozhuo, |
It is my understanding that iOS webviews load local static files from an internal local webserver on port 8081. The static file requests look something like I have detailed a solution for ejected Apps here but I don't know how this can be applied to expo Apps. |
The new version (2.0.2) has been already released. Please test and let me know about your results. |
has this been resolved? I am using v2.1.1 and am experiencing this issue. everything worked great locally but when the app was published, I get an empty box where the highchart should render. this really seems like something that should be mentioned in the readme. not something users find out after only after publishing their apps. |
Have you tried to move files to the correct path (android) -> https://github.com/highcharts/highcharts-react-native#files-are-not-loaded |
no, this was with an iOS app published with Expo and released through the Apple App Store. |
I tested this a little while ago but haven't had chance to comment. I was unable to get the latest version of the library working with local highcharts files on iOS using this method, which worked previously. IIRC the error I received in the webview console was something to do with CORS. I was only able to get the library working when the highcharts files are loaded from the cdn. |
@r-bman so if you loaded the files from the CDN, did it work in a published app, or just locally when developing? would it be possible for you to show your code of how you configured using the CDN? I'm unclear if it involves more than just passing the |
@axelav I haven't published an App using this library so I'm afraid I can't help you there. I think I just set the |
@r-bman gotcha, thanks for that info! |
It can be related with the issue react-native-webview/react-native-webview#875, Im waiting for a feedback from users about that. |
any further info on this one? |
At this moment all problems are combined and described here: #39 (also including some fixes/workarounds). |
Hi, it's working on
expo start
at local development, but when I build a native iOS or Android bundle asexpo build:ios
orexpo publish
, it does not workingThe text was updated successfully, but these errors were encountered: