HYUNGU, KANG před 4 roky
rodič
revize
da83d7cc8c
No account linked to committer's email address
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2
    2
      src/WebViewTypes.ts

+ 2
- 2
src/WebViewTypes.ts Zobrazit soubor

@@ -227,7 +227,7 @@ export interface CommonNativeWebViewProps extends ViewProps {
227 227
   injectedJavaScriptBeforeContentLoaded?: string;
228 228
   mediaPlaybackRequiresUserAction?: boolean;
229 229
   messagingEnabled: boolean;
230
-  onScroll?: (event: NativeScrollEvent) => void;
230
+  onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
231 231
   onLoadingError: (event: WebViewErrorEvent) => void;
232 232
   onLoadingFinish: (event: WebViewNavigationEvent) => void;
233 233
   onLoadingProgress: (event: WebViewProgressEvent) => void;
@@ -788,7 +788,7 @@ export interface WebViewSharedProps extends ViewProps {
788 788
   /**
789 789
    * Function that is invoked when the `WebView` scrolls.
790 790
    */
791
-  onScroll?: (event: NativeScrollEvent) => void;
791
+  onScroll?: (event: NativeSyntheticEvent<NativeScrollEvent>) => void;
792 792
 
793 793
   /**
794 794
    * Function that is invoked when the `WebView` has finished loading.