Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 752 B |
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 284 KiB |
After Width: | Height: | Size: 284 KiB |
After Width: | Height: | Size: 221 KiB |
After Width: | Height: | Size: 525 B |
@ -0,0 +1,33 @@
|
||||
import React from 'react';
|
||||
import {StyleSheet,Pressable, Text, Image} from 'react-native';
|
||||
|
||||
|
||||
export default function CustomButton(props) {
|
||||
return (
|
||||
<Pressable style={styles.button} >
|
||||
<Text style={styles.text}>{props.title}</Text>
|
||||
</Pressable>
|
||||
);
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
button: {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
paddingVertical: 12,
|
||||
paddingHorizontal: 32,
|
||||
borderRadius: 4,
|
||||
elevation: 3,
|
||||
backgroundColor: 'rgba(0, 0, 0, 0.7)',
|
||||
},
|
||||
text: {
|
||||
width: '100%', // L'image prend toute la largeur du conteneur
|
||||
height: '100%',
|
||||
fontSize: 16,
|
||||
lineHeight: 21,
|
||||
fontWeight: 'bold',
|
||||
letterSpacing: 0.25,
|
||||
color: 'white',
|
||||
},
|
||||
});
|
||||
|
@ -0,0 +1,4 @@
|
||||
declare module "*.png";
|
||||
declare module "*.svg";
|
||||
declare module "*.jpeg";
|
||||
declare module "*.jpg";
|
@ -0,0 +1,4 @@
|
||||
{
|
||||
"compilerOptions": {},
|
||||
"extends": "expo/tsconfig.base"
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"dependencies": {
|
||||
"@eva-design/eva": "^2.2.0",
|
||||
"@ui-kitten/components": "^5.3.1",
|
||||
"react-native-svg": "^13.14.0"
|
||||
}
|
||||
}
|