No Description

index.d.ts 937B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { Component } from 'react';
  2. // eslint-disable-next-line
  3. import { IOSWebViewProps, AndroidWebViewProps } from './lib/WebViewTypes';
  4. export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
  5. declare class WebView extends Component<WebViewProps> {
  6. /**
  7. * Go back one page in the webview's history.
  8. */
  9. goBack: () => void;
  10. /**
  11. * Go forward one page in the webview's history.
  12. */
  13. goForward: () => void;
  14. /**
  15. * Reloads the current page.
  16. */
  17. reload: () => void;
  18. /**
  19. * Stop loading the current page.
  20. */
  21. stopLoading(): void;
  22. /**
  23. * Extra Native Component Config.
  24. */
  25. extraNativeComponentConfig: () => any;
  26. /**
  27. * Executes the JavaScript string.
  28. */
  29. injectJavaScript: (script: string) => void;
  30. /**
  31. * Focuses on WebView redered page.
  32. */
  33. requestFocus: () => void;
  34. }
  35. export {WebView};
  36. export default WebView;