-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtes.js
55 lines (54 loc) · 1.36 KB
/
tes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<Pressable
width={"95%"}
paddingTop={3}
alignItems={"center"}
onPress={() => {
if (
userData.wallets.phone !== 70000003 &&
userData.wallets.phone !== 70000004
) {
navigation.navigate("LoanScreenFinal");
}
}}
/* onPress={() => {
navigation.navigate("TransferScreen");
}}
*/
>
{({ isHovered, isPressed }) => {
return (
<Box
justifyContent={"center"}
alignItems={"center"}
alignSelf="center"
width={"95%"}
bg={isPressed ? "white" : "white"}
style={{
transform: [
{
scale: isPressed ? 0.95 : 1,
},
],
}}
p="4"
rounded="8"
shadow={2}
borderWidth="0"
borderColor="coolGray.300"
>
{loan.loan.map((loanItem) => (
<View key={loanItem.index} style={styles.loanItem}>
<Text style={styles.index}>Index: {loanItem.index}</Text>
<Text style={styles.amountsmall}>Төлөх дүн: {loanItem.amount}</Text>
<Text style={styles.date}>
Төлөх огноо: {moment(loan.createdAt).format("YYYY-MM-DD")}
</Text>
<Text style={styles.status}>
Status: {loanItem.status.toString()}
</Text>
</View>
))}
</Box>
);
}}
</Pressable>;