mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
[ReactNative] Enable resolveAssetSource for Image.android
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user