Loading...
Loading...
Use this skill whenever an agent is working in a project that uses react-native-nitro-fetch, react-native-nitro-websockets, or react-native-nitro-text-decoder. Covers the fetch API, global replacement, prefetching and cold-start cache warming, the NitroWebSocket class and pre-warming, migrating from React Native's built-in WebSocket, the in-process NetworkInspector, native Perfetto / Instruments tracing, the native TextDecoder, and plugging nitro-fetch into axios via a custom adapter.
npx skill4agent add margelo/react-native-nitro-fetch nitro-fetchreact-native-nitro-fetchreferences/*.mdreact-native-nitro-fetchfetchURLSessionOkHttpHttpURLConnectionNitroWebSocketWebSocketNitroTextDecoderprefetchOnAppStart(...)prewarmOnAppStart(...)OPENimport { fetch } from 'react-native-nitro-fetch'import { NitroWebSocket } from 'react-native-nitro-websockets'globalThis.fetch = fetchNetworkInspectorreferences/| User is asking about… | Read |
|---|---|
Warming the cache before a screen mounts, making cold-start GETs feel instant, | |
Routing axios through nitro-fetch (the full custom adapter — | |
UTF-8 decoding, slow | |
Opening a | |
The | |
Migrating an existing app from React Native's built-in | |
Seeing requests and responses at the JS level, debugging which library made a call, | |
| Finding the slow API, DNS / TLS / TTFB breakdowns, native traces, Perfetto, Instruments, Hermes profiler | |
references/prefetching.mdnpm install react-native-nitro-fetch react-native-nitro-modules
# optional, for WebSockets and TextDecoder:
npm install react-native-nitro-websockets react-native-nitro-text-decoderpod install./gradlewinstall()setup()init()prewarmOnAppStartApplication.onCreateNitroWebSocketAutoPrewarmer.prewarmOnStart(this)AxiosAdapterbaseURLparamstimeoutsignalresponseTypeJSON.parseprefetchprefetchKeyreferences/prefetching.mdpackages/react-native-nitro-fetch/packages/react-native-nitro-websockets/packages/react-native-nitro-text-decoder/packages/react-native-nitro-fetch/src/index.tsxexample/index.jsexample/src/App.tsx