2024-03-24 14:23:08 +03:00
|
|
|
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) {
|
2024-03-25 10:04:03 +03:00
|
|
|
|
|
|
|
|
const { context } = route.params;
|
2024-03-24 14:23:08 +03:00
|
|
|
const { t } = useTranslation();
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
|
|
|
|
|
<Button
|
2024-03-25 10:04:03 +03:00
|
|
|
title={t('NewGame')}
|
|
|
|
|
onPress={() => navigation.navigate('Loby', { context })}></Button>
|
2024-03-24 14:23:08 +03:00
|
|
|
</View>
|
|
|
|
|
);
|
|
|
|
|
}
|