react-native-webview.git

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. export {WebView};
  32. export default WebView;