NITRO COOKIES / REACT NATIVE
Read, write, and manage native HTTP cookies. Use synchronous calls when you need a value now, or await WebKit and network operations.
iOS / Android / tvOS
TypeScript · Native storage · MIT licensed

01 / DIRECT
Read a stored value or build a request header with a direct JavaScript call.
02 / EXPLICIT
Choose Apple shared storage or the iOS WebKit store. Android uses CookieManager.
03 / TYPED
Typed cookies, list results, and scoped deletion make domain and path choices explicit.
FROM JAVASCRIPT TO NATIVE
Write a session cookie, then build a header from stored cookies that match the request URL.
Read the request header guide →import NitroCookies from "react-native-nitro-cookies";
const url = "https://api.example.com";
await NitroCookies.set(url, {
name: "session",
value: "demo-token",
path: "/",
secure: true,
});
const header = NitroCookies.getCookieHeaderSync(url);
// After storage: session=demo-tokenTHE DOCUMENTATION
From your first cookie to the details that matter in production.
Install the native modules, rebuild your app, and verify a complete write and read.
Follow the tutorial →02 BUILD A FLOWPick the right store and understand where your login cookie can be read.
Read the guide →03 LOOK IT UPCheck signatures, return values, platform support, and errors in one place.
Open the reference →Different platforms have different cookie stores. Check platform support →
View the source on GitHub ↗