FIX: centrage des boutons choix type de jeu

stub-api
Alban GUILHOT 3 years ago
parent 830ed3cf6a
commit 0be8bd45d9

@ -1,9 +1,9 @@
import { FC} from "react"
import { Pressable, Text} from "react-native"
import React from "react"
import styles from "./style/ButtonGameChoice.style"
import styles from "./style/ButtonGameTypeChoice.style"
export const ButtonGameChoice:
export const ButtonGameTypeChoice:
FC<{ onPress: any; title?: any | undefined; }>
=
({onPress,title}) =>

@ -6,9 +6,7 @@ export default StyleSheet.create({
justifyContent: 'center',
height: '30%',
width: '100%',
marginTop: '10%',
paddingVertical: 12,
paddingHorizontal: 32,
margin: '5%',
borderRadius: 10,
elevation: 3,
backgroundColor: '#0085FF',

@ -7,7 +7,7 @@ import { Skin } from '../core/skin';
import { TopBar } from '../components/TopBar';
import { BotBar } from '../components/BotBar';
import { Conversation } from '../core/conversation';
import { ButtonGameChoice } from '../components/ButtonGameChoice';
import { ButtonGameTypeChoice } from '../components/ButtonGameTypeChoice';
@ -33,11 +33,11 @@ function Home(props: { navigation: any; }) {
nav={navigation}
/>
<View style={styles.body}>
<ButtonGameChoice
<ButtonGameTypeChoice
title='Jouer Seul'
onPress={() => navigation.navigate('GameChoice')}
/>
<ButtonGameChoice
<ButtonGameTypeChoice
title='Défier mes amis'
onPress={() => navigation.navigate('GameChoice')}
/>

Loading…
Cancel
Save