如果我修改Libraries/Image/resolveAssetSource.js
类似下面的内容
function assetToImageSource(asset): ResolvedAssetSource {
var devServerURL = getDevServerURL();
if(devServerURL){
console.log("devServerURL:"+getPathOnDevserver(devServerURL, asset));
}else{
console.log("PathInArchive:"+getPathInArchive(asset));
}
return {
__packager_asset: true,
width: asset.width,
height: asset.height,
uri: devServerURL ? getPathOnDevserver(devServerURL, asset) : getPathInArchive(asset),
scale: pickScale(asset.scales, PixelRatio.get()),
};
}
如何重建或重新编译库?然后我可以从resolveAssetSource.js
中看到控制台日志