|
@@ -1,5 +1,5 @@
|
1
|
1
|
import React from 'react';
|
2
|
|
-import { StyleSheet, Text, View, TextInput, Button } from 'react-native';
|
|
2
|
+import { StyleSheet, Text, View, TextInput, Button, Pressable } from 'react-native';
|
3
|
3
|
import { sqlite_exec_parameterised } from '../db/query';
|
4
|
4
|
|
5
|
5
|
export default function AddDepense(props){
|
|
@@ -30,7 +30,8 @@ export default function AddDepense(props){
|
30
|
30
|
}}
|
31
|
31
|
/>
|
32
|
32
|
</View>
|
33
|
|
- <Button
|
|
33
|
+ <Pressable
|
|
34
|
+ style={add_depenses_styles.button_add}
|
34
|
35
|
onPress={() =>
|
35
|
36
|
{
|
36
|
37
|
console.log(depenseValue);
|
|
@@ -43,16 +44,20 @@ export default function AddDepense(props){
|
43
|
44
|
}
|
44
|
45
|
);
|
45
|
46
|
}
|
46
|
|
- }}
|
47
|
|
- title="Ajouter"/>
|
|
47
|
+ }}>
|
|
48
|
+ <Text>Ajouter</Text>
|
|
49
|
+ </Pressable>
|
48
|
50
|
</View>
|
49
|
51
|
: <View/>}
|
50
|
52
|
</View>
|
51
|
53
|
<View style={ add_depenses_styles.button_add_parent }>
|
52
|
|
- <Button
|
|
54
|
+ <Pressable
|
53
|
55
|
style={add_depenses_styles.button_add}
|
54
|
|
- title={!addingDepense ? "+" : "-"}
|
55
|
|
- onPress={() => onAddDepense(!addingDepense)}></Button>
|
|
56
|
+ onPress={() => onAddDepense(!addingDepense)}>
|
|
57
|
+
|
|
58
|
+ <Text>{!addingDepense ? "+" : "-"}</Text>
|
|
59
|
+
|
|
60
|
+ </Pressable>
|
56
|
61
|
</View>
|
57
|
62
|
</View>
|
58
|
63
|
);
|
|
@@ -67,12 +72,15 @@ const add_depenses_styles = StyleSheet.create({
|
67
|
72
|
|
68
|
73
|
},
|
69
|
74
|
form_area: {
|
70
|
|
- backgroundColor: '#f2c596',
|
|
75
|
+ backgroundColor: '#f2f2f2',
|
71
|
76
|
zIndex: 10,
|
72
|
77
|
elevation: 10,
|
|
78
|
+ margin: 5,
|
|
79
|
+ marginTop: '50%',
|
73
|
80
|
display: 'flex',
|
74
|
|
- flexDirection: 'column'
|
75
|
|
-
|
|
81
|
+ flexDirection: 'column',
|
|
82
|
+ justifyContent: "space-between",
|
|
83
|
+ borderWidth: 1,
|
76
|
84
|
},
|
77
|
85
|
form_entry :{
|
78
|
86
|
display: 'flex',
|
|
@@ -80,10 +88,12 @@ const add_depenses_styles = StyleSheet.create({
|
80
|
88
|
},
|
81
|
89
|
input :{
|
82
|
90
|
width: "50%",
|
83
|
|
- borderWidth: 1
|
|
91
|
+ borderWidth: 1,
|
|
92
|
+ textAlign: 'center',
|
84
|
93
|
},
|
85
|
94
|
button_add: {
|
86
|
|
-
|
|
95
|
+ borderWidth: 1,
|
|
96
|
+ padding: 10,
|
87
|
97
|
},
|
88
|
98
|
button_add_parent: {
|
89
|
99
|
position: 'absolute',
|