mancala/mobile/src/screens/HomeScreen.tsx

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