Skip to content

Commit

Permalink
* added enable/disable idle timer types
Browse files Browse the repository at this point in the history
  • Loading branch information
Bogdan committed Feb 22, 2021
1 parent 88d27ee commit 49b8910
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ declare class WebView<P = {}> extends Component<WebViewProps & P> {
*/
goBack: () => void;

/**
* Go back one page in the webview's history.
*/
disableIdleTimer: () => void;

/**
* Go back one page in the webview's history.
*/
enableIdleTimer: () => void;

/**
* Go forward one page in the webview's history.
*/
Expand Down
2 changes: 1 addition & 1 deletion src/WebViewTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
NativeScrollEvent,
} from 'react-native';

type WebViewCommands = 'goForward' | 'goBack' | 'reload' | 'stopLoading' | 'postMessage' | 'injectJavaScript' | 'loadUrl' | 'requestFocus';
type WebViewCommands = 'disableIdleTimer' | 'enableIdleTimer' | 'goForward' | 'goBack' | 'reload' | 'stopLoading' | 'postMessage' | 'injectJavaScript' | 'loadUrl' | 'requestFocus';

type AndroidWebViewCommands = 'clearHistory' | 'clearCache' | 'clearFormData';

Expand Down

0 comments on commit 49b8910

Please sign in to comment.