|
@@ -230,15 +230,18 @@ class WebView extends React.Component<AndroidWebViewProps, State> {
|
230
|
230
|
|
231
|
231
|
onLoadingFinish = (event: WebViewNavigationEvent) => {
|
232
|
232
|
const { onLoad, onLoadEnd } = this.props;
|
|
233
|
+ const { nativeEvent: { url } } = event;
|
233
|
234
|
if (onLoad) {
|
234
|
235
|
onLoad(event);
|
235
|
236
|
}
|
236
|
237
|
if (onLoadEnd) {
|
237
|
238
|
onLoadEnd(event);
|
238
|
239
|
}
|
239
|
|
- this.setState({
|
240
|
|
- viewState: 'IDLE',
|
241
|
|
- });
|
|
240
|
+ if (url && this.startUrl && url.toLowerCase() === this.startUrl.toLowerCase()) {
|
|
241
|
+ this.setState({
|
|
242
|
+ viewState: 'IDLE',
|
|
243
|
+ });
|
|
244
|
+ }
|
242
|
245
|
this.updateNavigationState(event);
|
243
|
246
|
};
|
244
|
247
|
|