import { useState } from "react" import { Image, StyleSheet } from "react-native" import { ActivityIndicator, Banner, Button, HelperText, TextInput, } from "react-native-paper" import { SafeAreaView } from "react-native-safe-area-context" const LoginPage: React.FC = () => { const [hasError, _sethasError] = useState(true) const [errorMessage, _setErrorMessage] = useState("Error message") const [isPerfomingLogin, _setIsPerfomingLogin] = useState(true) return ( { return ( ) }} > There was an error while trying to login. {errorMessage} ) } const styles = StyleSheet.create({ container: { flex: 1, alignItems: "center", justifyContent: "center", }, input: { width: "80%", marginBottom: 10, }, errorText: { marginBottom: 10, }, indicator: { marginTop: 10, marginBottom: 10, }, }) export default LoginPage