Skip to content Skip to sidebar Skip to footer

Webview Freezed After Using The Stoploading Of React-native-webview

I want to open a webpage in React native Webview and the hrefs (links) to be opened in the default browser. I tried using the stopLoading method of Webview but it freezes the view.

Solution 1:

I added stopLoading in the method that gets invoked for onShouldStartLoadWithRequest

webViewRef.current.stopLoading();

where webViewRef is the ref of the webView

ref = { webViewRef }

Post a Comment for "Webview Freezed After Using The Stoploading Of React-native-webview"