瀏覽代碼

feat(types): added missing types (#157)

Chet Corcos 6 年之前
父節點
當前提交
f70700df24
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5
    0
      typings/index.d.ts

+ 5
- 0
typings/index.d.ts 查看文件

@@ -199,6 +199,10 @@ export interface IOSWebViewProps {
199 199
    * backward compatible.
200 200
    */
201 201
   hideKeyboardAccessoryView?: boolean;
202
+  /**
203
+   * If true, this will be able horizontal swipe gestures when using the WKWebView. The default value is `false`.
204
+   */
205
+  allowsBackForwardNavigationGestures?: boolean
202 206
 }
203 207
 
204 208
 export interface AndroidWebViewProps {
@@ -417,4 +421,5 @@ export class WebView extends Component<WebViewSharedProps> {
417 421
   public goBack: () => void;
418 422
   public reload: () => void;
419 423
   public stopLoading: () => void;
424
+  public injectJavaScript: (js: string) => void
420 425
 }