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

Load assets from same folder as JSbundle (Android) #4527

wants to merge 17 commits into
base: master

Update resolveAssetSource.js

  • Loading branch information...
geof90 committed Dec 3, 2015
commit 670ada020e6baa35f36bbe9293b22ff03ba1ba41
@@ -68,7 +68,7 @@ function getPathInArchive(asset) {
if (match) {
// scriptURL has no scheme,
// E.g. /sdcard/path/to/file.jsbundle or /data/data/path/to/file.jsbundle
return 'file://' + match[0] +;
return 'file://' + match[0] + getBasePath(asset) + '/' +;
} else {
// scriptURL has a scheme, E.g. assets://file.jsbundle
var assetDir = getBasePath(asset);
ProTip! Use n and p to navigate between commits in a pull request.