react-native-webview
- Version 13.16.0
- Published
- 661 kB
- 2 dependencies
- MIT license
Install
npm i react-native-webviewyarn add react-native-webviewpnpm add react-native-webviewOverview
React Native WebView component for iOS, Android, macOS, and Windows
Index
Classes
class WebView
class WebView<P = {}> extends Component<WebViewProps & P> {}property clearCache
clearCache: (includeDiskFiles: boolean) => void;Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used.
property clearFormData
clearFormData?: () => void;(Android only) Removes the autocomplete popup from the currently focused form field, if present.
property clearHistory
clearHistory?: () => void;(Android only) Tells this WebView to clear its internal back/forward list.
property goBack
goBack: () => void;Go back one page in the webview's history.
property goForward
goForward: () => void;Go forward one page in the webview's history.
property injectJavaScript
injectJavaScript: (script: string) => void;Executes the JavaScript string.
property postMessage
postMessage: (message: string) => void;Posts a message to WebView.
property reload
reload: () => void;Reloads the current page.
property requestFocus
requestFocus: () => void;Focuses on WebView rendered page.
method stopLoading
stopLoading: () => void;Stop loading the current page.
Interfaces
interface FileDownload
interface FileDownload {}property downloadUrl
downloadUrl: string;interface WebViewNavigation
interface WebViewNavigation extends WebViewNativeEvent {}property mainDocumentURL
mainDocumentURL?: string;property navigationType
navigationType: | 'click' | 'formsubmit' | 'backforward' | 'reload' | 'formresubmit' | 'other';Type Aliases
type WebViewMessageEvent
type WebViewMessageEvent = NativeSyntheticEvent<WebViewMessage>;type WebViewProps
type WebViewProps = IOSWebViewProps & AndroidWebViewProps & WindowsWebViewProps;Package Files (2)
Dependencies (2)
Dev Dependencies (28)
- @babel/cli
- @babel/core
- @babel/runtime
- @callstack/react-native-visionos
- @react-native/babel-preset
- @react-native/eslint-config
- @react-native/metro-config
- @react-native/typescript-config
- @rnx-kit/metro-config
- @semantic-release/git
- @types/invariant
- @types/jest
- @types/react
- @types/selenium-webdriver
- appium
- eslint
- jest
- prettier
- react
- react-native
- react-native-macos
- react-native-test-app
- react-native-windows
- selenium-appium
- selenium-webdriver
- semantic-release
- typescript
- winappdriver
Peer Dependencies (2)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/react-native-webview.
- Markdown[](https://www.jsdocs.io/package/react-native-webview)
- HTML<a href="https://www.jsdocs.io/package/react-native-webview"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3341 ms. - Missing or incorrect documentation? Open an issue for this package.
