在此處輸入圖片描述 source.uri 不應為空字串
await Image.getSize(
uri && uri,
async (width, height) => {
//success
//image still exist in the galory
exist = true;
},
(error) => {
num_messing_files ;
// Failed
// image do no exist any more in the galory [ what does exactly X represent]
}
);
uj5u.com熱心網友回復:
您可以在呼叫 getSize 之前檢查 uri 是否為空字串,而不是在內部執行。
if(uri){
await Image.getSize(...)
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/315561.html
下一篇:在StackScreen標頭選項中設定TouchableOpacity時如何解決navigation.navigate錯誤?
