tradingview / charting-library-examples

Examples of Charting Library integrations with other libraries, frameworks and data transports
MIT License
1.33k stars 744 forks source link

Renders blank screen in iOS 14 with React Native #327

Closed salman-ar-sar closed 1 year ago

salman-ar-sar commented 1 year ago

Checklist

Describe the bug

I am working on integrating TradingView into my react native app. I have put the library into it. It is working fine in android and iOS 15 and above. But on iOS 14 I am getting a blank screen with no error in metro. When I tried to debug using Safari inspector I am getting this error: Failed to load resource: The operation couldn’t be completed. (WebKitBlobResource error 1.) Any idea what could be the issue and how to solve it?

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repo
  2. Go to 'react-native' folder and do the basic setup. Copy library.
  3. Run command - yarn ios
  4. Blank screen appears

Expected behavior

The chart should appear.

Screenshots

image image image

Additional context

Works fine in iOS 15 and 16 and in Android. For some reason, iOS 14 is not getting all the source files

SlicedSilver commented 1 year ago

This is a Safari bug on the older versions of iOS. We recently implemented a fix for this. Could you please try this again with either v23.047 or v24.000?

salman-ar-sar commented 1 year ago

This is a Safari bug on the older versions of iOS. We recently implemented a fix for this. Could you please try this again with either v23.047 or v24.000?

V23/24 of the Charting library right? I think I was using v23.043. Will update and try again.

salman-ar-sar commented 1 year ago

That worked. That was the issue. Thank you @SlicedSilver!

Closing this issue.