I've encountered an issue with react-native-webview in my code. It's being used under a scrollview and causing the app to crash when I press the back button or navigate to another screen.
Here is my React Native video code snippet:
<WebView
useWebKit
originWhitelist={["*"]}
style={{ width: "100%", height: carMapViewHeight }}
source={{ uri: carMapURL }}
mixedContentMode="compatibility"
onLoadEnd={() =>
this.setState({
isMapLoaded: true,
})
}
/>
I attempted one solution by adding androidHardwareAccelerationDisabled={true}, which stopped the crashing but now my react-native-video isn't playing anymore.
If anyone has any suggestions or solutions, it would be greatly appreciated. Thank you!