HYUNGU, KANG 4 years ago
parent
commit
da83d7cc8c
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/WebViewTypes.ts

+ 2
- 2
src/WebViewTypes.ts View File

@@ -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.