{"library":"fetch-native-bridge","type":"library","category":null,"description":"A fetch wrapper that bridges HTTP requests from a React Native WebView to the native app, enabling file downloads and other network operations that cannot be handled inside a WebView. Current stable version is 0.1.3, released as a new package with no prior major versions. Key differentiators: provides a drop-in `fetchBridge()` replacement that works identically to `fetch` in browsers, uses a message-passing pattern via `postMessage`/`onMessage`, and offers a `setupFetchHandler()` hook on the native side with optional `onFetch` callback for custom response handling (e.g., saving files to disk). Ships TypeScript types and requires `react-native >=0.70.0` and `react-native-webview >=11.0.0` as peer dependencies. The library does not transfer credentials (cookies, tokens) from the WebView; authentication must be handled natively.","language":"javascript","status":"active","version":"0.1.3","tags":["javascript","react-native","webview","fetch","bridge","file-download","native","typescript"],"last_verified":"Sun Jun 07","install":[{"cmd":"npm install fetch-native-bridge","imports":["import { fetchBridge } from 'fetch-native-bridge'","import { isReactNativeWebView } from 'fetch-native-bridge'","import { setupFetchHandler } from 'fetch-native-bridge/native'"]},{"cmd":"yarn add fetch-native-bridge","imports":[]},{"cmd":"pnpm add fetch-native-bridge","imports":[]}],"homepage":"https://github.com/MaxMoffa/fetch-native-bridge#readme","github":"https://github.com/MaxMoffa/fetch-native-bridge","docs":null,"changelog":null,"pypi":null,"npm":"fetch-native-bridge","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}