Moon-009 / react-native-chartjs

19 stars 24 forks source link

The webpage at asset:///asset_........... could not be loaded because: net:ERR_UNKNOWN_URL_SCHEME #3

Closed kalyanipullela closed 6 years ago

kalyanipullela commented 6 years ago

Hey,

I have created the project with expo init and used the react-native-charts-js... Its running fine in Android Emulator but when building a signed APK for the application it throws the following error. ee

Can anyone help out what is the issue?

Thanks in Advance

gawema commented 6 years ago

Hey,

I have created the project with expo init and used the react-native-charts-js... Its running fine in Android Emulator but when building a signed APK for the application it throws the following error. ee

Can anyone help out what is the issue?

Thanks in Advance

Hi @kalyanipullela , I am having the same issue, did you perhaps find a solution?? Thanks a lot in advance! :)

kalyanipullela commented 6 years ago

no @gabwesth

Moon-009 commented 6 years ago

@gabwesth @kalyanipullela

I'm sorry to read this late. I have a little long time no develop mobile apps. About this ,I need some time to test.

Moon-009 commented 6 years ago

@kalyanipullela @gabwesth Happy to tell that I found the solution. According to https://stackoverflow.com/questions/37102662/external-html-asset-not-bundled-by-react-native-in-production-build-for-use-by-w, I put the index.html under the assets directory and change the source configuration as source = {{uri: 'file:///android_asset/index.html'}} in the "index.js", It works fine. The asset directory is under android/app/src/main, if it doesn't exist, you need create it manually. This works just for android release situation.