Closed kalyanipullela closed 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.
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! :)
no @gabwesth
@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.
@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.
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.
Can anyone help out what is the issue?
Thanks in Advance