App crashing on navigation due to react-native-webview?

Viewed 579

I am using react-native-webview in my code. It is used under the scrollview. But due to it app is crashing when I pressing back button or navigating to another screen.

Below is my react native video code

 <WebView
  useWebKit
  originWhitelist={["*"]}
  style={{ width: "100%", height: carMapViewHeight }}
  source={{ uri: carMapURL }}
  mixedContentMode="compatibility"
  onLoadEnd={() =>
    this.setState({
      isMapLoaded: true,
    })
  }
/>

I tried one solution using androidHardwareAccelerationDisabled={true}. It is working but my react-native-video has stopped playing after that.

Any help would be appreciated. Thanks!

0 Answers
Related