import React from 'react' import { Text, TouchableOpacity, View } from 'react-native' import { SafeAreaView } from 'react-native-safe-area-context' import styles from './styles' export type Props = { error: Error; resetError: () => void } const FallbackComponent = (props: Props) => ( Oops! {"There's an error"} {props.error.toString()} Try again ) export default FallbackComponent