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 { FC} from "react"
import { Pressable, Text} from "react-native" import { Pressable, Text} from "react-native"
import React from "react" 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; }> FC<{ onPress: any; title?: any | undefined; }>
= =
({onPress,title}) => ({onPress,title}) =>

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

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

Loading…
Cancel
Save