Skip to main content

Blazing-fast networking
for React Native

Drop-in fetch() replacement powered by Cronet & URLSession. HTTP/3, QUIC, prefetching, WebSockets, and worklet mapping.

npm i react-native-nitro-fetch react-native-nitro-modules
Nitro Fetch

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.

Before
// Built-in fetch (JS polyfill)
const res = await fetch('https://api.example.com/data')
const json = await res.json()
After
import { fetch } from 'react-native-nitro-fetch'

const res = await fetch('https://api.example.com/data')
const json = await res.json()