Why Nitro Fetch?
HTTP/3 + QUIC
Powered by Cronet on Android and URLSession on iOS. Supports HTTP/1, HTTP/2, HTTP/3 over QUIC, Brotli compression, and disk caching.
Prefetching
Start requests before your screen mounts. Auto-prefetch on app startup yields ~220ms faster TTI on mid-range devices.
WebSockets
High-performance WebSockets via libwebsockets + mbedTLS. Browser-like API with prewarm support for cold-start connections.
Worklet Mapping
Parse and transform response data off the JS thread using react-native-worklets. Keep your UI buttery smooth.
Streaming
ReadableStream body support with TextDecoder for incremental UTF-8 chunk processing. Stream large responses efficiently.
Drop-in Replacement
Same fetch() API you already know. Swap one import and get native performance โ no code changes needed.
One-line swap
Replace your import and get native performance instantly.
// Built-in fetch (JS polyfill)
const res = await fetch('https://api.example.com/data')
const json = await res.json()import { fetch } from 'react-native-nitro-fetch'
const res = await fetch('https://api.example.com/data')
const json = await res.json()