diff --git a/en/react-native-webview.md b/en/react-native-webview.md index fc8a8e984bca88fc0f65029c0ff72150247612b0..6e3bdd197fe35122a774a89ef6dba008b6a0b08c 100644 --- a/en/react-native-webview.md +++ b/en/react-native-webview.md @@ -324,6 +324,7 @@ For details, see [webview official document](https://github.com/react-native-web | `onContentProcessDidTerminate: (event) => void` | Function that is invoked when the `WebView` content process is terminated. | function | No | iOS and macOS WKWebView | No | | `renderLoading?` | Function that returns a loading indicator. The `startInLoadingState` prop must be set to `true` in order to use this prop. | function | No | iOS, Android, macOS | No | | `onCustomMenuSelection?` | Function called when a custom menu item is selected. It receives a Native event, which includes three custom keys: `label`, `key` and `selectedText`. | function | NO | iOS, Android | No | +| `onNavigationStateChange?: (event) => void` | Function that is invoked when the WebView loading starts or ends. | function | NO | iOS, Android | yes | ## Static Methods diff --git a/zh-cn/react-native-webview.md b/zh-cn/react-native-webview.md index 852d6feab91d45ec810174d17c1cbeb7be20c224..5ba3125d2fe12b84bbda6005f2bb0617164f8443 100644 --- a/zh-cn/react-native-webview.md +++ b/zh-cn/react-native-webview.md @@ -326,6 +326,7 @@ ohpm install | `onContentProcessDidTerminate: (event) => void` | Function that is invoked when the `WebView` content process is terminated. | function | No | iOS and macOS WKWebView | No | | `renderLoading?` | Function that returns a loading indicator. The `startInLoadingState` prop must be set to `true` in order to use this prop. | function | No | iOS, Android, macOS | No | | `onCustomMenuSelection?` | Function called when a custom menu item is selected. It receives a Native event, which includes three custom keys: `label`, `key` and `selectedText`. | function | NO | iOS, Android | No | +| `onNavigationStateChange?: (event) => void` | Function that is invoked when the WebView loading starts or ends. | function | NO | iOS, Android | yes | ## 静态方法 > [!TIP] "Platform"列表示该属性在原三方库上支持的平台。