-
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
Chart Not Rendering on iOS and Android #4
Comments
Hi @userkpkpuser, |
When running demo via expo it works but doesn't seem to be showing anything when run normally. I see also a blank screen, just a white background. Tested with newest |
After debugging I see that
So I think the path to the lib might be an issue here - didn't check it though. |
Same issue here as well. Let us know about any updates! Thanks! |
I think this is an issue with WebView, the HighchartsReactNative.js file imports WebView from 'react-native' instead of from 'react-native-webview'. If you change it, the index.html file will render but it's just a blank page (you can check if it's actually rendering by putting an alert in a script tag and checking if it pops up). This is all on Android - very excited about using Highcharts with React Native! |
Hi, |
XCode 10.1 and 10.2.1 |
I did steps:
As a result all worked properly (withtout errors which you experienced). Please correct me if I miss something or did in differant way than you. |
Try non expo project |
Hi @ssuchanowski, |
@ssuchanowski |
Hi @SaeedZhiany, |
How is this going? |
I'm having this issue also with Expo 34, it seems to be broken since Expo 32 (33+ needs to use the WebView exported from 'react-native-webview' community package). |
Tried using both Expo SDK 33 and 34 with
@Seshpenguin Is there a solution to get this package working with Expo 33+ using |
@athenawisdoms that's probably just a caching issue, google this part |
@sebastianbochan any update here? |
Hi @ssuchanowski, Related topic: |
Mine showing a blank page. Any update on this? |
@ms042087, |
@sebastianbochan Android 9.0, compiler compileSdkVersion = 28 Finally get it done. Blank page or page showing html text are basically due to wrong path or Android debug mode problem. I tried to put a website URL into source, it displayed normally. Therefore, the WebView module should work fine. Main Problem: My Solution:
This changes the source path of the local files based on the platforms.
Hope it helps. |
Hi @userkpkpuser, Its strickly related with webview problems like:
At this moment, I think that the best solution is adding platform recognizing (like you suggested) + add an option of load files prom CDN instead of local files system. Points 2 and 3 will be only in docs (for user adaption). Does it make sense? |
@sebastianbochan I retested my solution and it works for me. |
Hi @ms042087, Will be really grateful if you will be able to test it too. ps. if all will work properly I will add CDN and modules options. |
@sebastianbochan |
Thank you for feedback, Im starting to add CDN support and multiple modules. |
What is the proper way to install the Tried
|
@BabishanM, @athenawisdoms |
Regarding to update, in the wrapper I used webkit.postmessage and event to cache it. At this moment it was removed from webview and is still developed / reorganized. Ref: |
Had the issue with Expo + RN High Charts as well. And the case was ONLY with published project. The reason was really funny enough. https://github.com/highcharts/highcharts-react-native/blob/beta-webview/dist/src/HighchartsReactNative.js#L12 - here guys you use HTTP. As I suppose in the latest versions of iOS Apple could have blocked non secure connections in iFrames (i.e. WebViews). So I just changed it to HTTPS: Please give some time to Expo so cache could go on. Hope that will help you! |
Thank you for the feedback! |
The new version (2.0.2) has been already released. Im closing the ticket, but please reopen if any issues will come again. |
Hi @sebastianbochan I tried to use react-native 0.59 for this component but had the same problem |
@bestjsguru did you run this in Android or iOS? Which version of OS? |
@sebastianbochan
Then I receive some error messages in terminal:
After that, I added 'css', 'js to metro as following:
Am I missing any installation step? |
I am getting this error: I am running RN 0.61.5 with android emulator. Please tell me which files to add and where? |
Same issues here, any help? |
Same issue :( |
This worked for me! Thanks! |
i am having similar issue on using highchart in EXPO application . the issue seems to be in the source provided to webView in highcharts react native wrapper . i.e: I solved it by using expo-asset-utils to convert my required file into asset in componentdidmount() and used the uri of this asset as source of webView so that my modified HighchartsReactNative.js file looks like :
and in webview using source as :
using the uri of asset didn't work for me hence using loacalUri try this and it might help you |
Thank you for the suggestion. |
@mustapha-khan could you share your simplified working project? When I run the Expo SDK 64, was not able to run it properly in Android. |
I get it work after changing the metro config file into
|
Big thanks for the hint. Will share it with our users to be ensure that it worked. |
@sebastianbochan Except for yours Highcharts, actually, that's what you're talking about with using react-native-webview,when the html file import other JS files which will hint xxxx.js cannot be loaded as its extension is not registered in assetExts.if I add ‘js’ into assetExts while it didn't work. Environment |
How to implement this could you please explain it? |
We are wokring on that and debugging the problem. Can be related with new versions of modules. Thankfully, we are able to reproduce the problem. I will inform you about progress, when find a reason of issue. |
any progress on this ? |
3.0 fixed this issue. But 3.0 got another problem with iOS, here is the [hotfix].(#104 (comment)). |
There's not even a working example on the internet with this thing working... hilarious |
If any one try to Implement HIChartView in flutter with native code with the help of ( implement class with PlatformView) in flutter . Then make sure during make instance of HIChartView give them layout and background color to HIChartView if background color missing then view not rendered and it will not showing error in log . |
Hi Team, when we tried to run the sample example provided in Readme file, but the charts are not rendering and there is no error also.
The text was updated successfully, but these errors were encountered: