npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@onekeyfe/react-native-webview-cleaner

v6.8.0-17

Published

webview cleaner

Readme

@onekeyfe/react-native-webview-cleaner

Clear the app's WebView website data with one fire-and-forget call.

npm license iOS Android NativeModule

Exposes a single clearAll() method that requests deletion of app-wide WebView website data through the platform stores. iOS removes every WKWebsiteDataStore data type modified since the Unix epoch from the default data store; Android removes all cookies, flushes them, and deletes all WebStorage data. The call is fire-and-forget — it returns undefined, takes no filters, and reports no completion. There is no Web implementation.

Features

  • One call — clearAll() clears the app's default WebView stores without arguments, keys or per-origin bookkeeping.
  • Covers both stores — WebKit website data types on iOS; cookies plus WebStorage on Android.
  • No retained state — the wrapper performs one bridge call and keeps no JavaScript cache, queue or request state.
  • Legacy-compatible entry point — the default export and the RNWebViewCleaner native module name are unchanged, so existing consumers and dependency aliases keep working.
  • No new native runtime — the package is a classic React Native bridge module; it does not add a Nitro dependency.

Installation

yarn add @onekeyfe/react-native-webview-cleaner

Install the app's iOS pods and rebuild the native binary; Android links through autolinking and also requires a native rebuild. The package has no Nitro or other native peer dependency.

If an application installs the package under the legacy react-native-webview-cleaner dependency alias, the alias import below still resolves to the same module.

Usage

import WebViewCleaner from '@onekeyfe/react-native-webview-cleaner';

// Requests deletion of app-wide WebView website data.
WebViewCleaner.clearAll();
// This returns immediately; native deletion is not awaited.

The application owns any coordination around clearing — for example deciding when to run it relative to logout or the next WebView load.

API

| Export | Signature | Platforms | Description | | --- | --- | :-: | --- | | default clearAll | () => void | iOS, Android | Requests deletion of the app's default WebView website data. |

clearAll() has no caller-visible completion callback, result or event. The wrapper calls NativeModules.RNWebViewCleaner.clearAll() and discards the native result, including the iOS promise. See src/index.ts for the wrapper and docs/SPEC.md for the full behavioral contract.

If the installed dependency uses the legacy alias, import it the same way:

import WebViewCleaner from 'react-native-webview-cleaner';

WebViewCleaner.clearAll();

Platform support

| Capability | iOS | Android | Web | | --- | :-: | :-: | :-: | | Remove website data | ✅ all WebKit types since epoch | ✅ cookies + WebStorage | — | | Filter by account, origin or data type | — | — | — | | Completion callback or result | — | — | — | | Await deletion completion | — | — | — |

Caveats

[!IMPORTANT] clearAll() returns undefined; await does not wait for deletion to finish. Do not treat the call as a completion barrier for logout, account switching or the next WebView load.

[!WARNING] The native stores are app-wide. Clearing removes cookies and website storage used by every WebView in the same app, with no per-wallet, per-account or per-tab partition, and repeated calls can overlap.

[!NOTE] Android's operation does not guarantee removal of every WebView disk cache, and cookie removal may still be pending when the method returns. Native failures are not reported through the public API; an unavailable native module can throw synchronously.

References

License

MIT. See LICENSE.