Getting Started
June 6, 2026 ยท View on GitHub
- Install dependencies:
npm install react-native-nitro-fetch react-native-nitro-modules
- Rebuild your app so the Nitro module is linked.
Verify with a simple request:
import { fetch } from 'react-native-nitro-fetch';
export async function test() {
const res = await fetch('https://httpbin.org/get');
console.log('status', res.status);
console.log('headers', Object.fromEntries(res.headers as any));
console.log('json', await res.json());
}
Notes
- Android uses Cronet (via
org.chromium.net:cronet-embedded) which is already included inandroid/build.gradle. - iOS uses the native URLSession client.