react-native-webview.git

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