Overview of the react-native-nitro-fetch ecosystem
mainThe react-native-nitro-fetch family provides a high-performance, native-backed networking stack for React Native. It serves as a drop-in replacement for standard browser APIs, leveraging Nitro Modules to move networking logic to native code (iOS URLSession and Android OkHttp/HttpURLConnection).
Core components include:
fetch: A WHATWG-compatible fetch API.NitroWebSocket: A native WebSocket implementation (usinglibwebsockets+mbedTLS) that matches the browserWebSocketshape.NitroTextDecoder: A native UTF-8 decoder designed to outperform the Hermes JS polyfill.
The ecosystem focuses on three performance pillars: Prefetching (running requests/socket opens before JS loads), Native Client Integration (explicit imports or global replacement), and Observability (using NetworkInspector for JS-level debugging or native Perfetto/Instruments for low-level latency analysis).