forked from CRAlpha/react-native-wkwebview
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This function will clear the specified data from the WKWebView. You call the function with an array of the types you want to remove: this.webView.removeData([ WebsiteDataTypes.DiskCache, WebsiteDataTypes.OfflineWebApplicationCache, WebsiteDataTypes.MemoryCache, WebsiteDataTypes.LocalStorage, WebsiteDataTypes.Cookies, WebsiteDataTypes.SessionStorage, WebsiteDataTypes.IndexedDBDatabases, WebsiteDataTypes.WebSQLDatabases, ]) WebsiteDataTypes is now exported from the module, so you include: import WKWebView, { WebsiteDataTypes } from 'react-native-wkwebview-reborn' If you pass null for the array then all data types are removed.
- Loading branch information
Showing
5 changed files
with
69 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
'use strict'; | ||
|
||
import WKWebView from './WKWebView'; | ||
import WKWebView, {WebsiteDataTypes} from './WKWebView'; | ||
|
||
export default WKWebView; | ||
export { WebsiteDataTypes } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters