[ReactNative] Enable resolveAssetSource for Image.android

This commit is contained in:
Alex Kotliarskyi
2015-04-24 10:56:58 -07:00
parent d094952725
commit 970bff6132
2 changed files with 10 additions and 3 deletions

View File

@@ -43,10 +43,11 @@ function pickScale(scales, deviceScale) {
return scales[scales.length - 1] || 1;
}
// TODO(frantic):
// * Pick best scale and append @Nx to file path
// * We are currently using httpServerLocation for both http and in-app bundle
function resolveAssetSource(source) {
if (!source || typeof source !== 'object') {
return null;
}
if (!source.__packager_asset) {
return source;
}