parent
836f4f2f13
commit
c4baa57882
After Width: | Height: | Size: 525 B |
@ -1,32 +1,33 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Button, View } from 'react-native';
|
import {StyleSheet,Pressable, Text, Image} from 'react-native';
|
||||||
|
|
||||||
|
|
||||||
export default function CustomButton(props) {
|
export default function CustomButton(props) {
|
||||||
return (
|
return (
|
||||||
<View style={styles.View}>
|
<Pressable style={styles.button} >
|
||||||
<Button
|
<Text style={styles.text}>{props.title}</Text>
|
||||||
title={props.title}
|
</Pressable>
|
||||||
onPress={props.onPress}
|
|
||||||
/>
|
|
||||||
</View>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const styles = StyleSheet.create({
|
const styles = StyleSheet.create({
|
||||||
button: {
|
button: {
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
paddingVertical: 12,
|
paddingVertical: 12,
|
||||||
paddingHorizontal: 32,
|
paddingHorizontal: 32,
|
||||||
borderRadius: 4,
|
borderRadius: 4,
|
||||||
elevation: 3,
|
elevation: 3,
|
||||||
backgroundColor: 'black',
|
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
||||||
},
|
},
|
||||||
text: {
|
text: {
|
||||||
fontSize: 16,
|
width: '100%', // L'image prend toute la largeur du conteneur
|
||||||
lineHeight: 21,
|
height: '100%',
|
||||||
fontWeight: 'bold',
|
fontSize: 16,
|
||||||
letterSpacing: 0.25,
|
lineHeight: 21,
|
||||||
color: 'white',
|
fontWeight: 'bold',
|
||||||
},
|
letterSpacing: 0.25,
|
||||||
});
|
color: 'white',
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
|
@ -0,0 +1,4 @@
|
|||||||
|
declare module "*.png";
|
||||||
|
declare module "*.svg";
|
||||||
|
declare module "*.jpeg";
|
||||||
|
declare module "*.jpg";
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"@eva-design/eva": "^2.2.0",
|
||||||
|
"@ui-kitten/components": "^5.3.1",
|
||||||
|
"react-native-svg": "^13.14.0"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue