[英]Getting an Error “image source error at React Native”
我正在從React Native ios項目的Web API服務中獲取數據,並且收到了此消息
RCTURLRequestHandlers RCTDataRequestHandler:0x7a11c0e0和RCTImageStoreManager:0x7a6c46a0都報告它們可以處理請求NSURLRequest:0x7a28bb10 {URL:%250D%250A%250D%250Ahttps://webApiURL/post1.png},並且具有相同的優先級(0)。 這可能導致不確定的行為。
我該如何解決這個問題?
我以這種方式分配了圖像源
<Image source={{uri: post.ImagePath}} />
當我嘗試刪除“ uri”時
<Image source={post.ImagePath} />
我收到警告消息
“警告:propType失敗:提供給
Image
無效propsource
。請檢查StaticRenderer
的渲染方法。”
似乎該post.ImagePath
的%250D%250A%250D%250A
部分post.ImagePath
不應該存在。
您能顯示post
對象的內容嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.