mirror of
https://github.com/status-im/react-native-webview.git
synced 2026-08-31 03:31:05 +00:00
fix(types): wrong parameter type in onLoadProgress (#538)
WebViewProgressEvent musst be wrapped within NativeSyntheticEvent
This commit is contained in:
committed by
Thibault Malbranche
parent
737f8b4741
commit
5892601c29
+3
-1
@@ -91,7 +91,7 @@ export interface WebViewNativeEvent {
|
||||
lockIdentifier: number;
|
||||
}
|
||||
|
||||
export interface WebViewProgressEvent extends WebViewNativeEvent {
|
||||
export interface WebViewNativeProgressEvent extends WebViewNativeEvent {
|
||||
progress: number;
|
||||
}
|
||||
|
||||
@@ -122,6 +122,8 @@ export interface WebViewError extends WebViewNativeEvent {
|
||||
|
||||
export type WebViewEvent = NativeSyntheticEvent<WebViewNativeEvent>;
|
||||
|
||||
export type WebViewProgressEvent = NativeSyntheticEvent<WebViewNativeProgressEvent>;
|
||||
|
||||
export type WebViewNavigationEvent = NativeSyntheticEvent<WebViewNavigation>;
|
||||
|
||||
export type WebViewMessageEvent = NativeSyntheticEvent<WebViewMessage>;
|
||||
|
||||
Reference in New Issue
Block a user