Açıklama Yok

index.d.ts 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. import { Component } from 'react';
  2. // eslint-disable-next-line
  3. import { IOSWebViewProps, AndroidWebViewProps } from './src/WebViewTypes';
  4. export { FileDownload, WebViewMessageEvent, WebViewNavigation } from "./src/WebViewTypes";
  5. export type WebViewProps = IOSWebViewProps & AndroidWebViewProps;
  6. declare class WebView<P = {}> extends Component<WebViewProps & P> {
  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. * Posts a message to WebView.
  37. */
  38. postMessage: (message: string) => void;
  39. /**
  40. * (Android only)
  41. * Removes the autocomplete popup from the currently focused form field, if present.
  42. */
  43. clearFormData: () => void;
  44. /**
  45. * (Android only)
  46. * Clears the resource cache. Note that the cache is per-application, so this will clear the cache for all WebViews used.
  47. */
  48. clearCache: (clear: boolean) => void;
  49. /**
  50. * (Android only)
  51. * Tells this WebView to clear its internal back/forward list.
  52. */
  53. clearHistory: () => void;
  54. }
  55. export {WebView};
  56. export default WebView;