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

index.html file is not loading in react-native app #315

Open HarshaKosala opened 1 year ago

HarshaKosala commented 1 year ago

I have created a new react-native app and added the charting_library to android assets folder and App.js code as it is in the react-native example. But I'm getting a blank white screen instead of the chart. I have added my custom html file and it getting loaded correctly. Any idea why this is happening? There are no any console errors as well. image image

semcak1 commented 1 year ago

You must give the right path. to uri try this , source = { { uri : 'file:///android_asset/charting_library-master/index.html' } } if you put folder under asset you should declare it on path like this. write your own folder name instead of the bolded word.