Image component network requests do not appear in Network DevTools on Android/iOS
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- react-native
- Ambito
- devtools, mobile, networking
Direzione di ricerca
Inizia da Network Event Coverage nella documentazione di React Native DevTools e riproduci la richiesta dell’URL Image esterno sia su Android che su iOS. Traccia il modo in cui le richieste effettuate dal componente Image vengono mostrate in Network DevTools, quindi verifica che la richiesta compaia nella scheda Network su entrambe le piattaforme. Il lavoro è completato quando il comportamento documentato funziona per la riproduzione fornita.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Network requests initiated by the React Native Image component (i.e., image source fetches) never appear in Network DevTools, even though the documentation states that this behavior is expected and supported (see https://reactnative.dev/docs/react-native-devtools -> Network Event Coverage). Issue is present on both Android and iOS.
Simple reproduction code:
function AppContent() {
const [showImage, setShowImage] = useState(false);
return (
<View style={styles.container}>
<Button
onPress={() => setShowImage(true)}
title="Show Image"
/>
{showImage && (
<Image
source={{ uri: 'https://cataas.com/cat' }}
style={styles.image}
/>
)}
</View>
);
}
Steps to reproduce
- Install React Native application via React Native Community CLI
- Launch the app, then the DevTools, open Network tab
- Create an
Imagecomponent with source set as external url (for example https://cataas.com/cat)
React Native Version
0.84.0-rc.1 and earlier
Output of npx @react-native-community/cli info
System:
OS: macOS 15.6.1
CPU: (8) arm64 Apple M1 Pro
Memory: 214.00 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 20.19.4
path: /Users/pawel/.nvm/versions/node/v20.19.4/bin/node
Yarn:
version: 1.22.22
path: /opt/homebrew/bin/yarn
npm:
version: 10.8.2
path: /Users/pawel/.nvm/versions/node/v20.19.4/bin/npm
Watchman:
version: 2025.06.30.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/pawel/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 25.2
- iOS 26.2
- macOS 26.2
- tvOS 26.2
- visionOS 26.2
- watchOS 26.2
Android SDK: Not Found
IDEs:
Android Studio: 2025.2 AI-252.28238.7.2523.14608894
Xcode:
version: 26.2/17C52
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.15
path: /usr/bin/javac
Ruby:
version: 3.1.0
path: /Users/pawel/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli":
installed: 20.0.0
wanted: latest
react:
installed: 19.2.3
wanted: 19.2.3
react-native:
installed: 0.84.0-rc.1
wanted: 0.84.0-rc.1
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: true
newArchEnabled: true
Screenshots and Videos
https://github.com/user-attachments/assets/392907dd-1736-4eba-b9b7-b96f5bd009ae
- Lingua principale
- C++
- Stelle
- 127k
- Fork
- 25.3k
- Merge medio
- 1g 23h
- PR unite (30g)
- 4
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di react/react-native
-
Needs: Triage :mag:
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
react/react-native#58565 · 1 commento · 2 reazioni ·
-
Needs: Author Feedback Needs: Repro
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
react/react-native#58555 · 4 commenti · 1 reazione ·
-
Needs: Attention Needs: Repro
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
react/react-native#58526 · 2 commenti ·
-
Needs: Author Feedback Needs: Repro
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
react/react-native#58448 · 1 commento ·
-
Needs: Attention Needs: Repro
Difficoltà 2/5 Mezza giornata Idoneità per principianti 82/100
react/react-native#58441 · 2 commenti ·
Tutte le issue di react/react-native
Issue simili
-
Website Doc Typo Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 92/100
autowarefoundation/autoware_universe#13413 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
-
automated-analysis bug memory-safety
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100