A React Native WebView component with offline caching support for both iOS and Android. Version 0.1.2 is the latest stable release. It uses iOS's RNCachingURLProtocol and Android's CacheWebView to enable offline browsing by caching HTTP responses to disk. Differentiates from basic WebView by adding built-in offline cache, cookie management, and JS bridge. The library depends on react-native-advanced-webview and requires manual linking. Note: this project appears unmaintained (last commit in 2018) and relies on outdated dependencies.
npm install react-native-offline-cache-webviewNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage: import the default component and render it with a source URI. Requires manual linking after install.
Consider alternative like react-native-webview with custom cache handling or react-native-offline.
For RN >=0.60, use npx react-native link react-native-offline-cache-webview or CocoaPods for iOS.
Ensure no duplicate registration of NSURLProtocol handlers.
Use proper SSL certificates or configure WebView to accept them.
No fix required; functional but not modern.
Run npm install react-native-offline-cache-webview --save and then react-native link react-native-offline-cache-webview
Use default import: import OfflineCacheWebView from 'react-native-offline-cache-webview';
Ensure library is linked: react-native link react-native-offline-cache-webview and clear Metro cache.