Initial commit: expo-popcore-app
This commit is contained in:
31
app/+not-found.tsx
Normal file
31
app/+not-found.tsx
Normal file
@@ -0,0 +1,31 @@
|
||||
import { Link, Stack } from "expo-router";
|
||||
import { StyleSheet, View } from "react-native";
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
export default function NotFoundScreen() {
|
||||
const { t } = useTranslation();
|
||||
return (
|
||||
<>
|
||||
<Stack.Screen options={{ title: t('notFound.title') }} />
|
||||
<View style={styles.container}>
|
||||
<Link href="/" style={styles.button}>
|
||||
{t('notFound.goBack')}
|
||||
</Link>
|
||||
</View>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
backgroundColor: "#25292e",
|
||||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
},
|
||||
button: {
|
||||
fontSize: 20,
|
||||
textDecorationLine: "underline",
|
||||
color: "#fff",
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user