Ver código fonte

fix: onScroll type definition properly

HYUNGU, KANG 5 anos atrás
pai
commit
5f1363644e
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      src/WebViewTypes.ts

+ 2
- 2
src/WebViewTypes.ts Ver arquivo

219
   injectedJavaScriptBeforeContentLoaded?: string;
219
   injectedJavaScriptBeforeContentLoaded?: string;
220
   mediaPlaybackRequiresUserAction?: boolean;
220
   mediaPlaybackRequiresUserAction?: boolean;
221
   messagingEnabled: boolean;
221
   messagingEnabled: boolean;
222
-  onScroll?: (event: NativeScrollEvent) => void;
222
+  onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
223
   onLoadingError: (event: WebViewErrorEvent) => void;
223
   onLoadingError: (event: WebViewErrorEvent) => void;
224
   onLoadingFinish: (event: WebViewNavigationEvent) => void;
224
   onLoadingFinish: (event: WebViewNavigationEvent) => void;
225
   onLoadingProgress: (event: WebViewProgressEvent) => void;
225
   onLoadingProgress: (event: WebViewProgressEvent) => void;
627
   /**
627
   /**
628
    * Function that is invoked when the `WebView` scrolls.
628
    * Function that is invoked when the `WebView` scrolls.
629
    */
629
    */
630
-  onScroll?: (event: NativeScrollEvent) => void;
630
+  onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
631
 
631
 
632
   /**
632
   /**
633
    * Function that is invoked when the `WebView` has finished loading.
633
    * Function that is invoked when the `WebView` has finished loading.