import React, { ReactNode } from "react"; import { Button, StyleSheet, Text, View } from "react-native"; import { WebViewHandlers } from "../types/webview-handlers-type"; /** * Render error screen for WebView * @param handlers WebViewHandlers to access reload and other functions * @param errorDomain error domain provided by WebView * @param errorCode error code provided by WebView * @param errorDesc error description */ export function renderWebViewError( handlers: WebViewHandlers, errorDomain: any, errorCode: any, errorDesc: string ): ReactNode { return ( Oops! Something went wrong. {errorDesc}