Skip to content

Commit

Permalink
fix(deps): Fix RNCWebViewUIManager interface typescript error (#… (#928)
Browse files Browse the repository at this point in the history
* fix(deps): Fix RNCWebViewUIManager interface typescript error (#901)

* fix: Revert indentation changes
  • Loading branch information
bonesyblue authored and Titozzz committed Oct 3, 2019
1 parent 1302a37 commit e529fa9
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions src/WebViewTypes.ts
Expand Up @@ -12,22 +12,13 @@ import {
NativeScrollEvent,
} from 'react-native';

export interface WebViewCommands {
goForward: number;
goBack: number;
reload: number;
stopLoading: number;
postMessage: number;
injectJavaScript: number;
loadUrl: number;
requestFocus: number;
}
type WebViewCommands = 'goForward' | 'goBack' | 'reload' | 'stopLoading' | 'postMessage' | 'injectJavaScript' | 'loadUrl' | 'requestFocus';

export interface RNCWebViewUIManager extends UIManagerStatic {
getViewManagerConfig: (
name: 'RNCWebView',
name: string,
) => {
Commands: WebViewCommands;
Commands: { [key in WebViewCommands]: number };
};
}

Expand Down

0 comments on commit e529fa9

Please sign in to comment.