{"repo":"margelo/react-native-nitro-fetch","free":true,"listed":false,"github":"https://github.com/margelo/react-native-nitro-fetch","clone":"git clone https://github.com/margelo/react-native-nitro-fetch.git","description":"A super-fast network fetching library for React Native with prefetching support","language":"C++","stars":932,"topics":["cronet","fast","fetch","http","http2","network","nitro","prefetch","react","react-native"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-nitro-fetch is a general purpose network fetching library for React Native. It can be used as a drop-in replacement for the built-in fetch(...) method, as well as provide additional features like prefetching and workletized mappers. Documentation Features - 🔧 Drop-in replacement for the built-in fetch(...) method - ⚡️ Fast HTTP stack using Cronet on Android, and URLSession on iOS - 💪 Supports HTTP/1, HTTP/2 and HTTP/3 over QUIC, Brotli, and disk cache - ⏰ Prefetching on app-startup for even faster initialization - 🧵 Worklet support for parallel data mapping without blocking the JS Thread - 🔌 Optional WebSockets via react-native-nitro-websockets (see WebSockets & prewarm below) - 🔥 Powered by Nitro Modules Installation Nitro Modules requires react-native 0.75+ or higher WebSockets (optional) — add the companion socket package plus text decoder (peer dependency of websockets): Full setup, native hooks, prewarm, and API details: docs/websockets.md · UI: example/src/screens/WebSocketScreen.tsx · auth + prewarm: Token refresh (example block). Usage To simply fetch data, import the fetch(...) method from react-native-nitro-fetch : This can be used as a drop-in-replacement for the built-in fetch(...) method. Prefetching in JS You can prefetch a URL in JS, which keeps the result cached for the next actual fetch(...) call - this can be used shortly before navigating to a new screen to have results hot & ready: Then, on the new screen that was navigated to: Prefetchin","default_branch":null,"files":null,"tree":[],"storefront":"/r/margelo","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/margelo/react-native-nitro-fetch/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}