mancala/mobile/src/screens/HomeScreen.tsx

17 lines
488 B
TypeScript
Raw Normal View History

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) {
const { t } = useTranslation();
return (
<View style={{ flex: 1, alignItems: 'center', justifyContent: 'center' }}>
<Button
title={t('newGame')}
onPress={() => navigation.navigate('Loby')}></Button>
</View>
);
}