17 lines
488 B
TypeScript
17 lines
488 B
TypeScript
|
|
import * as React from 'react';
|
||
|
|
import { View, Button } from 'react-native';
|
||
|
|
import { useTranslation } from 'react-i18next';
|
||
|
|
import { HomeScreenProps } from '../types';
|
||
|
|
|
||
|
|
export function HomeScreen({ navigation, route }: HomeScreenProps) {
|
||
|
|
const { t } = useTranslation();
|
||
|
|
|
||
|
|
return (
|
||
|
|
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
|
||
|
|
<Button
|
||
|
|
title={t('newGame')}
|
||
|
|
onPress={() => navigation.navigate('Loby')}></Button>
|
||
|
|
</View>
|
||
|
|
);
|
||
|
|
}
|