|
|
@ -1,11 +1,13 @@
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import {StyleSheet,Pressable, Text, Image} from 'react-native';
|
|
|
|
import {StyleSheet,Pressable, Text, View} from 'react-native';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export default function CustomButton(props) {
|
|
|
|
export default function CustomButton(props) {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Pressable style={styles.button} >
|
|
|
|
<Pressable style={styles.button}>
|
|
|
|
|
|
|
|
<View style={styles.view}>
|
|
|
|
<Text style={styles.text}>{props.title}</Text>
|
|
|
|
<Text style={styles.text}>{props.title}</Text>
|
|
|
|
|
|
|
|
</View>
|
|
|
|
</Pressable>
|
|
|
|
</Pressable>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -14,20 +16,28 @@ const styles = StyleSheet.create({
|
|
|
|
button: {
|
|
|
|
button: {
|
|
|
|
alignItems: 'center',
|
|
|
|
alignItems: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
justifyContent: 'center',
|
|
|
|
paddingVertical: 12,
|
|
|
|
width : 150,
|
|
|
|
paddingHorizontal: 32,
|
|
|
|
height: 40,
|
|
|
|
borderRadius: 4,
|
|
|
|
borderRadius: 4,
|
|
|
|
elevation: 3,
|
|
|
|
elevation: 3,
|
|
|
|
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
|
|
|
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
text: {
|
|
|
|
text: {
|
|
|
|
width: '100%', // L'image prend toute la largeur du conteneur
|
|
|
|
fontSize: 15,
|
|
|
|
height: '100%',
|
|
|
|
|
|
|
|
fontSize: 16,
|
|
|
|
|
|
|
|
lineHeight: 21,
|
|
|
|
lineHeight: 21,
|
|
|
|
fontWeight: 'bold',
|
|
|
|
fontWeight: 'bold',
|
|
|
|
letterSpacing: 0.25,
|
|
|
|
letterSpacing: 0.25,
|
|
|
|
color: 'white',
|
|
|
|
color: 'white',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
view: {
|
|
|
|
|
|
|
|
width : 145,
|
|
|
|
|
|
|
|
height: 35,
|
|
|
|
|
|
|
|
borderRadius: 4,
|
|
|
|
|
|
|
|
elevation: 3,
|
|
|
|
|
|
|
|
borderWidth: 1,
|
|
|
|
|
|
|
|
borderColor: 'grey',
|
|
|
|
|
|
|
|
alignItems: 'center', // Centre le contenu verticalement
|
|
|
|
|
|
|
|
justifyContent: 'center', // Centre le contenu horizontalement
|
|
|
|
|
|
|
|
},
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|