digikhata-mashreq-sdk 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +37 -0
- package/lib/module/App.js +41 -0
- package/lib/module/App.js.map +1 -0
- package/lib/module/app/assets/Icons/Bill.png +0 -0
- package/lib/module/app/assets/Icons/Cash.png +0 -0
- package/lib/module/app/assets/Icons/Expense.png +0 -0
- package/lib/module/app/assets/Icons/Staff.png +0 -0
- package/lib/module/app/assets/Icons/Stock.png +0 -0
- package/lib/module/app/assets/images/bill.png +0 -0
- package/lib/module/app/assets/images/book.png +0 -0
- package/lib/module/app/assets/images/digiKhataSolo256.png +0 -0
- package/lib/module/app/assets/images/money.png +0 -0
- package/lib/module/app/assets/images/staff.png +0 -0
- package/lib/module/app/assets/images/stock.png +0 -0
- package/lib/module/app/assets/images/svgviewer-png-output-white.png +0 -0
- package/lib/module/app/components/Balance.js +153 -0
- package/lib/module/app/components/Balance.js.map +1 -0
- package/lib/module/app/components/CountryPhoneInput.js +271 -0
- package/lib/module/app/components/CountryPhoneInput.js.map +1 -0
- package/lib/module/app/components/Entries.js +89 -0
- package/lib/module/app/components/Entries.js.map +1 -0
- package/lib/module/app/components/SearchBar.js +70 -0
- package/lib/module/app/components/SearchBar.js.map +1 -0
- package/lib/module/app/components/Transaction.js +108 -0
- package/lib/module/app/components/Transaction.js.map +1 -0
- package/lib/module/app/components/User.js +109 -0
- package/lib/module/app/components/User.js.map +1 -0
- package/lib/module/app/components/index.js +10 -0
- package/lib/module/app/components/index.js.map +1 -0
- package/lib/module/app/database/clients.js +149 -0
- package/lib/module/app/database/clients.js.map +1 -0
- package/lib/module/app/database/database.js +9 -0
- package/lib/module/app/database/database.js.map +1 -0
- package/lib/module/app/database/schema.js +525 -0
- package/lib/module/app/database/schema.js.map +1 -0
- package/lib/module/app/navigation/BottomTabs/BottomTabs.js +29 -0
- package/lib/module/app/navigation/BottomTabs/BottomTabs.js.map +1 -0
- package/lib/module/app/navigation/Drawer/Drawer.js +13 -0
- package/lib/module/app/navigation/Drawer/Drawer.js.map +1 -0
- package/lib/module/app/navigation/HomeStack/HomeStack.js +36 -0
- package/lib/module/app/navigation/HomeStack/HomeStack.js.map +1 -0
- package/lib/module/app/navigation/Root.js +26 -0
- package/lib/module/app/navigation/Root.js.map +1 -0
- package/lib/module/app/navigation/index.js +7 -0
- package/lib/module/app/navigation/index.js.map +1 -0
- package/lib/module/app/redux/Store.js +10 -0
- package/lib/module/app/redux/Store.js.map +1 -0
- package/lib/module/app/redux/reducers/client/client_actions.js +2 -0
- package/lib/module/app/redux/reducers/client/client_actions.js.map +1 -0
- package/lib/module/app/redux/reducers/client/client_reducers.js +26 -0
- package/lib/module/app/redux/reducers/client/client_reducers.js.map +1 -0
- package/lib/module/app/redux/reducers/client/client_types.js +7 -0
- package/lib/module/app/redux/reducers/client/client_types.js.map +1 -0
- package/lib/module/app/screens/AddScreen.js +200 -0
- package/lib/module/app/screens/AddScreen.js.map +1 -0
- package/lib/module/app/screens/Banks.js +126 -0
- package/lib/module/app/screens/Banks.js.map +1 -0
- package/lib/module/app/screens/CustomerEntries.js +475 -0
- package/lib/module/app/screens/CustomerEntries.js.map +1 -0
- package/lib/module/app/screens/Customers.js +233 -0
- package/lib/module/app/screens/Customers.js.map +1 -0
- package/lib/module/app/screens/Entry.js +696 -0
- package/lib/module/app/screens/Entry.js.map +1 -0
- package/lib/module/app/screens/HomeScreen.js +176 -0
- package/lib/module/app/screens/HomeScreen.js.map +1 -0
- package/lib/module/app/screens/SelectBusiness.js +201 -0
- package/lib/module/app/screens/SelectBusiness.js.map +1 -0
- package/lib/module/app/screens/Splash.js +51 -0
- package/lib/module/app/screens/Splash.js.map +1 -0
- package/lib/module/app/screens/Suppliers.js +222 -0
- package/lib/module/app/screens/Suppliers.js.map +1 -0
- package/lib/module/app/screens/TransactionDetails.js +301 -0
- package/lib/module/app/screens/TransactionDetails.js.map +1 -0
- package/lib/module/app/screens/index.js +14 -0
- package/lib/module/app/screens/index.js.map +1 -0
- package/lib/module/app/themes/config.js +156 -0
- package/lib/module/app/themes/config.js.map +1 -0
- package/lib/module/app/utils/countries.json +1930 -0
- package/lib/module/declarations.d.js +2 -0
- package/lib/module/declarations.d.js.map +1 -0
- package/lib/module/index.js +5 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/babel.config.d.ts +10 -0
- package/lib/typescript/babel.config.d.ts.map +1 -0
- package/lib/typescript/eslint.config.d.mts +3 -0
- package/lib/typescript/eslint.config.d.mts.map +1 -0
- package/lib/typescript/package.json +1 -0
- package/lib/typescript/src/App.d.ts +2 -0
- package/lib/typescript/src/App.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Balance.d.ts +8 -0
- package/lib/typescript/src/app/components/Balance.d.ts.map +1 -0
- package/lib/typescript/src/app/components/CountryPhoneInput.d.ts +6 -0
- package/lib/typescript/src/app/components/CountryPhoneInput.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Entries.d.ts +4 -0
- package/lib/typescript/src/app/components/Entries.d.ts.map +1 -0
- package/lib/typescript/src/app/components/SearchBar.d.ts +6 -0
- package/lib/typescript/src/app/components/SearchBar.d.ts.map +1 -0
- package/lib/typescript/src/app/components/Transaction.d.ts +11 -0
- package/lib/typescript/src/app/components/Transaction.d.ts.map +1 -0
- package/lib/typescript/src/app/components/User.d.ts +10 -0
- package/lib/typescript/src/app/components/User.d.ts.map +1 -0
- package/lib/typescript/src/app/components/index.d.ts +8 -0
- package/lib/typescript/src/app/components/index.d.ts.map +1 -0
- package/lib/typescript/src/app/database/clients.d.ts +9 -0
- package/lib/typescript/src/app/database/clients.d.ts.map +1 -0
- package/lib/typescript/src/app/database/database.d.ts +3 -0
- package/lib/typescript/src/app/database/database.d.ts.map +1 -0
- package/lib/typescript/src/app/database/schema.d.ts +2 -0
- package/lib/typescript/src/app/database/schema.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/BottomTabs/BottomTabs.d.ts +2 -0
- package/lib/typescript/src/app/navigation/BottomTabs/BottomTabs.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/Drawer/Drawer.d.ts +2 -0
- package/lib/typescript/src/app/navigation/Drawer/Drawer.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/HomeStack/HomeStack.d.ts +2 -0
- package/lib/typescript/src/app/navigation/HomeStack/HomeStack.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/Root.d.ts +2 -0
- package/lib/typescript/src/app/navigation/Root.d.ts.map +1 -0
- package/lib/typescript/src/app/navigation/index.d.ts +5 -0
- package/lib/typescript/src/app/navigation/index.d.ts.map +1 -0
- package/lib/typescript/src/app/redux/Store.d.ts +2 -0
- package/lib/typescript/src/app/redux/Store.d.ts.map +1 -0
- package/lib/typescript/src/app/redux/reducers/client/client_actions.d.ts +1 -0
- package/lib/typescript/src/app/redux/reducers/client/client_actions.d.ts.map +1 -0
- package/lib/typescript/src/app/redux/reducers/client/client_reducers.d.ts +3 -0
- package/lib/typescript/src/app/redux/reducers/client/client_reducers.d.ts.map +1 -0
- package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts +5 -0
- package/lib/typescript/src/app/redux/reducers/client/client_types.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/AddScreen.d.ts +5 -0
- package/lib/typescript/src/app/screens/AddScreen.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Banks.d.ts +2 -0
- package/lib/typescript/src/app/screens/Banks.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/CustomerEntries.d.ts +5 -0
- package/lib/typescript/src/app/screens/CustomerEntries.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Customers.d.ts +4 -0
- package/lib/typescript/src/app/screens/Customers.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Entry.d.ts +5 -0
- package/lib/typescript/src/app/screens/Entry.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/HomeScreen.d.ts +4 -0
- package/lib/typescript/src/app/screens/HomeScreen.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/SelectBusiness.d.ts +4 -0
- package/lib/typescript/src/app/screens/SelectBusiness.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Splash.d.ts +4 -0
- package/lib/typescript/src/app/screens/Splash.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/Suppliers.d.ts +4 -0
- package/lib/typescript/src/app/screens/Suppliers.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/TransactionDetails.d.ts +5 -0
- package/lib/typescript/src/app/screens/TransactionDetails.d.ts.map +1 -0
- package/lib/typescript/src/app/screens/index.d.ts +12 -0
- package/lib/typescript/src/app/screens/index.d.ts.map +1 -0
- package/lib/typescript/src/app/themes/config.d.ts +63 -0
- package/lib/typescript/src/app/themes/config.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +3 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/package.json +154 -0
- package/src/App.js +41 -0
- package/src/app/assets/Icons/Bill.png +0 -0
- package/src/app/assets/Icons/Cash.png +0 -0
- package/src/app/assets/Icons/Expense.png +0 -0
- package/src/app/assets/Icons/Staff.png +0 -0
- package/src/app/assets/Icons/Stock.png +0 -0
- package/src/app/assets/images/bill.png +0 -0
- package/src/app/assets/images/book.png +0 -0
- package/src/app/assets/images/digiKhataSolo256.png +0 -0
- package/src/app/assets/images/money.png +0 -0
- package/src/app/assets/images/staff.png +0 -0
- package/src/app/assets/images/stock.png +0 -0
- package/src/app/assets/images/svgviewer-png-output-white.png +0 -0
- package/src/app/components/Balance.js +122 -0
- package/src/app/components/CountryPhoneInput.js +286 -0
- package/src/app/components/Entries.js +75 -0
- package/src/app/components/SearchBar.js +64 -0
- package/src/app/components/Transaction.js +91 -0
- package/src/app/components/User.js +85 -0
- package/src/app/components/index.js +15 -0
- package/src/app/database/clients.js +207 -0
- package/src/app/database/database.js +9 -0
- package/src/app/database/schema.js +525 -0
- package/src/app/navigation/BottomTabs/BottomTabs.js +27 -0
- package/src/app/navigation/Drawer/Drawer.js +10 -0
- package/src/app/navigation/HomeStack/HomeStack.js +43 -0
- package/src/app/navigation/Root.js +32 -0
- package/src/app/navigation/index.js +9 -0
- package/src/app/redux/Store.js +9 -0
- package/src/app/redux/reducers/client/client_actions.js +0 -0
- package/src/app/redux/reducers/client/client_reducers.js +30 -0
- package/src/app/redux/reducers/client/client_types.js +5 -0
- package/src/app/screens/AddScreen.js +185 -0
- package/src/app/screens/Banks.js +151 -0
- package/src/app/screens/CustomerEntries.js +402 -0
- package/src/app/screens/Customers.js +240 -0
- package/src/app/screens/Entry.js +658 -0
- package/src/app/screens/HomeScreen.js +146 -0
- package/src/app/screens/SelectBusiness.js +177 -0
- package/src/app/screens/Splash.js +43 -0
- package/src/app/screens/Suppliers.js +228 -0
- package/src/app/screens/TransactionDetails.js +199 -0
- package/src/app/screens/index.js +23 -0
- package/src/app/themes/config.js +185 -0
- package/src/app/utils/countries.json +1930 -0
- package/src/declarations.d.ts +1 -0
- package/src/index.tsx +3 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, TouchableOpacity, TextInput } from 'react-native'
|
|
2
|
+
import React, { useState } from 'react'
|
|
3
|
+
import { COLORS, FONT_NORMAL, WP } from '../themes/config'
|
|
4
|
+
import LinearGradient from 'react-native-linear-gradient'
|
|
5
|
+
import Ionicons from "react-native-vector-icons/Ionicons"
|
|
6
|
+
import { CountryPhoneInput } from '../components'
|
|
7
|
+
import { addClient, deleteClientById, getAllClients, getClientDetails } from '../database/clients'
|
|
8
|
+
import { CLIENT_DETAILS, SUPPLIER_DETAILS } from '../redux/reducers/client/client_types'
|
|
9
|
+
import { useDispatch } from "react-redux"
|
|
10
|
+
|
|
11
|
+
export default function AddScreen({ navigation, route }) {
|
|
12
|
+
|
|
13
|
+
const { type } = route.params;
|
|
14
|
+
const dispatch = useDispatch();
|
|
15
|
+
|
|
16
|
+
const [Name, setName] = useState("");
|
|
17
|
+
const [PhoneNum, setPhoneNum] = useState("");
|
|
18
|
+
|
|
19
|
+
const onAddBtn = () => {
|
|
20
|
+
addClient(Name, PhoneNum, type).then((res) => {
|
|
21
|
+
console.log(res, "Success");
|
|
22
|
+
setName("");
|
|
23
|
+
setPhoneNum("");
|
|
24
|
+
getClientDetails(res?.insertId).then((resp) => {
|
|
25
|
+
dispatch({
|
|
26
|
+
type: CLIENT_DETAILS,
|
|
27
|
+
payload: resp
|
|
28
|
+
})
|
|
29
|
+
navigation.navigate("CustomerEntries")
|
|
30
|
+
})
|
|
31
|
+
}).catch((err) => {
|
|
32
|
+
console.log(err, "Error")
|
|
33
|
+
})
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const getClients = () => {
|
|
37
|
+
getAllClients()
|
|
38
|
+
.then(res => {
|
|
39
|
+
console.log(res, "Success"); // will log [] if table is empty
|
|
40
|
+
})
|
|
41
|
+
.catch(err => {
|
|
42
|
+
console.log(err, "Error");
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const removeClient = async (id) => {
|
|
47
|
+
try {
|
|
48
|
+
const deleted = await deleteClientById(id);
|
|
49
|
+
if (deleted) {
|
|
50
|
+
console.log(`Client with id=${id} deleted`);
|
|
51
|
+
} else {
|
|
52
|
+
console.log(`No client found with id=${id}`);
|
|
53
|
+
}
|
|
54
|
+
} catch (err) {
|
|
55
|
+
console.log("Delete error:", err);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
return (
|
|
60
|
+
<View style={Styles._mainContainers}>
|
|
61
|
+
<LinearGradient
|
|
62
|
+
start={{ x: 0, y: 0 }}
|
|
63
|
+
end={{ x: 1, y: 0 }}
|
|
64
|
+
colors={[COLORS.primaryColor, COLORS.secondaryColor]}
|
|
65
|
+
style={Styles._linearGradient}
|
|
66
|
+
>
|
|
67
|
+
<View style={Styles._titleMain}>
|
|
68
|
+
<TouchableOpacity
|
|
69
|
+
activeOpacity={0.8}
|
|
70
|
+
onPress={() => { navigation.goBack() }}
|
|
71
|
+
>
|
|
72
|
+
<Ionicons
|
|
73
|
+
name={"chevron-back"}
|
|
74
|
+
color={COLORS.whiteColor}
|
|
75
|
+
size={20}
|
|
76
|
+
/>
|
|
77
|
+
</TouchableOpacity>
|
|
78
|
+
|
|
79
|
+
<Text style={Styles._title}>Add {type == 0 ? "Customer" : "Supplier"}</Text>
|
|
80
|
+
</View>
|
|
81
|
+
</LinearGradient>
|
|
82
|
+
|
|
83
|
+
<View style={Styles._contentMain}>
|
|
84
|
+
<View style={{ width: "100%", alignItems: "center", gap: 12 }}>
|
|
85
|
+
<TextInput
|
|
86
|
+
placeholder='Type Customer Name'
|
|
87
|
+
style={Styles._input}
|
|
88
|
+
placeholderTextColor={COLORS.grey}
|
|
89
|
+
cursorColor={COLORS.primaryColor}
|
|
90
|
+
value={Name}
|
|
91
|
+
onChangeText={(text) => { setName(text) }}
|
|
92
|
+
/>
|
|
93
|
+
|
|
94
|
+
<CountryPhoneInput
|
|
95
|
+
onChange={(text) => { setPhoneNum(text?.fullNumber) }}
|
|
96
|
+
/>
|
|
97
|
+
</View>
|
|
98
|
+
|
|
99
|
+
<TouchableOpacity
|
|
100
|
+
activeOpacity={0.8}
|
|
101
|
+
style={[Styles._continueBtn, { backgroundColor: Name == "" ? COLORS.gray : COLORS.primaryColor }]}
|
|
102
|
+
// onPress={() => navigation?.navigate("CustomerEntries")}
|
|
103
|
+
onPress={() => {
|
|
104
|
+
if (Name.trim()) {
|
|
105
|
+
onAddBtn()
|
|
106
|
+
}
|
|
107
|
+
}}
|
|
108
|
+
>
|
|
109
|
+
<Text style={Styles._continueBtnTxt}>Continue</Text>
|
|
110
|
+
</TouchableOpacity>
|
|
111
|
+
</View>
|
|
112
|
+
</View>
|
|
113
|
+
)
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
const Styles = StyleSheet.create({
|
|
117
|
+
_mainContainers: {
|
|
118
|
+
flex: 1,
|
|
119
|
+
backgroundColor: COLORS.backgroundColor,
|
|
120
|
+
alignItems: "center"
|
|
121
|
+
},
|
|
122
|
+
_linearGradient: {
|
|
123
|
+
width: WP(100),
|
|
124
|
+
height: 80,
|
|
125
|
+
alignItems: "center",
|
|
126
|
+
},
|
|
127
|
+
_titleMain: {
|
|
128
|
+
width: WP(94),
|
|
129
|
+
height: 30,
|
|
130
|
+
// backgroundColor: "red",
|
|
131
|
+
flexDirection: "row",
|
|
132
|
+
alignItems: "center",
|
|
133
|
+
marginTop: 10
|
|
134
|
+
},
|
|
135
|
+
_title: {
|
|
136
|
+
color: COLORS.whiteColor,
|
|
137
|
+
fontFamily: FONT_NORMAL,
|
|
138
|
+
fontSize: 15,
|
|
139
|
+
marginLeft: 15
|
|
140
|
+
},
|
|
141
|
+
_contentMain: {
|
|
142
|
+
width: WP(94),
|
|
143
|
+
height: "90%",
|
|
144
|
+
backgroundColor: COLORS.whiteColor,
|
|
145
|
+
position: "absolute",
|
|
146
|
+
top: 50,
|
|
147
|
+
shadowColor: "#000",
|
|
148
|
+
shadowOffset: {
|
|
149
|
+
width: 0,
|
|
150
|
+
height: 2,
|
|
151
|
+
},
|
|
152
|
+
shadowOpacity: 0.2,
|
|
153
|
+
shadowRadius: 3.84,
|
|
154
|
+
elevation: 5,
|
|
155
|
+
borderRadius: 10,
|
|
156
|
+
alignItems: "center",
|
|
157
|
+
justifyContent: "space-between",
|
|
158
|
+
paddingVertical: 12,
|
|
159
|
+
},
|
|
160
|
+
_input: {
|
|
161
|
+
width: "95%",
|
|
162
|
+
height: 50,
|
|
163
|
+
backgroundColor: COLORS.whiteColor,
|
|
164
|
+
borderRadius: 15,
|
|
165
|
+
paddingLeft: 12,
|
|
166
|
+
borderColor: COLORS.grey,
|
|
167
|
+
borderWidth: 1,
|
|
168
|
+
color: COLORS.blackColor,
|
|
169
|
+
fontFamily: FONT_NORMAL,
|
|
170
|
+
fontSize: 13
|
|
171
|
+
},
|
|
172
|
+
_continueBtn: {
|
|
173
|
+
width: "95%",
|
|
174
|
+
height: 50,
|
|
175
|
+
backgroundColor: COLORS.primaryColor,
|
|
176
|
+
borderRadius: 100,
|
|
177
|
+
justifyContent: "center",
|
|
178
|
+
alignItems: "center",
|
|
179
|
+
},
|
|
180
|
+
_continueBtnTxt: {
|
|
181
|
+
color: COLORS.whiteColor,
|
|
182
|
+
fontFamily: FONT_NORMAL,
|
|
183
|
+
fontSize: 17
|
|
184
|
+
},
|
|
185
|
+
})
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { View, Text, StyleSheet, TouchableOpacity, ScrollView } from 'react-native'
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import { COLORS, FONT_NORMAL, WP } from '../themes/config'
|
|
4
|
+
import { Balance, Entries, SearchBar, User } from '../components'
|
|
5
|
+
import Ionicons from "react-native-vector-icons/Ionicons"
|
|
6
|
+
import AntDesign from "react-native-vector-icons/AntDesign"
|
|
7
|
+
import FontAwesome6 from "react-native-vector-icons/FontAwesome6"
|
|
8
|
+
import LinearGradient from 'react-native-linear-gradient'
|
|
9
|
+
|
|
10
|
+
export default function Banks() {
|
|
11
|
+
|
|
12
|
+
const data = []
|
|
13
|
+
|
|
14
|
+
return (
|
|
15
|
+
<View style={Styles._mainContainer}>
|
|
16
|
+
<ScrollView
|
|
17
|
+
contentContainerStyle={{ alignItems: "center", paddingBottom: 60 }}
|
|
18
|
+
showsVerticalScrollIndicator={false}
|
|
19
|
+
>
|
|
20
|
+
<Balance greenTitle={"Total purchase of Sep"} redTitle={"You will get"} />
|
|
21
|
+
<Entries marginTop={85}/>
|
|
22
|
+
|
|
23
|
+
<View style={Styles._contentMain}>
|
|
24
|
+
{/* <View style={Styles._searchMain}>
|
|
25
|
+
<View style={Styles._inputMain}>
|
|
26
|
+
<SearchBar />
|
|
27
|
+
</View>
|
|
28
|
+
|
|
29
|
+
<View style={Styles._filterMain}>
|
|
30
|
+
<TouchableOpacity
|
|
31
|
+
activeOpacity={0.8}
|
|
32
|
+
style={Styles._filterBtn}
|
|
33
|
+
>
|
|
34
|
+
<Ionicons
|
|
35
|
+
name={"funnel-outline"}
|
|
36
|
+
color={COLORS.primaryColor}
|
|
37
|
+
size={27}
|
|
38
|
+
/>
|
|
39
|
+
</TouchableOpacity>
|
|
40
|
+
|
|
41
|
+
<TouchableOpacity
|
|
42
|
+
activeOpacity={0.8}
|
|
43
|
+
style={Styles._filterBtn}
|
|
44
|
+
>
|
|
45
|
+
<FontAwesome6
|
|
46
|
+
name={"file-pdf"}
|
|
47
|
+
color={COLORS.primaryColor}
|
|
48
|
+
size={23}
|
|
49
|
+
/>
|
|
50
|
+
</TouchableOpacity>
|
|
51
|
+
</View>
|
|
52
|
+
</View>
|
|
53
|
+
|
|
54
|
+
<View>
|
|
55
|
+
{
|
|
56
|
+
data.map((item, index) => {
|
|
57
|
+
return (
|
|
58
|
+
<User key={index} name={item?.name} addedAt={item?.addedAt} amount={item?.amount} type={item?.type} avatarColor={item?.avatarColor} />
|
|
59
|
+
)
|
|
60
|
+
})
|
|
61
|
+
}
|
|
62
|
+
</View> */}
|
|
63
|
+
</View>
|
|
64
|
+
</ScrollView>
|
|
65
|
+
|
|
66
|
+
<TouchableOpacity
|
|
67
|
+
style={Styles._floatingBtn}
|
|
68
|
+
activeOpacity={0.8}
|
|
69
|
+
>
|
|
70
|
+
<LinearGradient start={{ x: 0, y: 0 }} end={{ x: 1, y: 0 }} colors={[COLORS.primaryColor, COLORS.secondaryColor]} style={Styles._linearGradient}>
|
|
71
|
+
<AntDesign
|
|
72
|
+
name={"bank"}
|
|
73
|
+
color={COLORS.whiteColor}
|
|
74
|
+
size={22}
|
|
75
|
+
style={{ paddingLeft: 10 }}
|
|
76
|
+
/>
|
|
77
|
+
|
|
78
|
+
<Text style={Styles._fabTxt}>ADD BANK</Text>
|
|
79
|
+
</LinearGradient>
|
|
80
|
+
</TouchableOpacity>
|
|
81
|
+
</View>
|
|
82
|
+
)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
const Styles = StyleSheet.create({
|
|
86
|
+
_mainContainer: {
|
|
87
|
+
flex: 1,
|
|
88
|
+
backgroundColor: COLORS.backgroundColor,
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
},
|
|
91
|
+
_contentMain: {
|
|
92
|
+
width: WP(100),
|
|
93
|
+
// height: 30,
|
|
94
|
+
backgroundColor: COLORS.whiteColor,
|
|
95
|
+
paddingHorizontal: 15,
|
|
96
|
+
marginTop: 6
|
|
97
|
+
},
|
|
98
|
+
_searchMain: {
|
|
99
|
+
width: "100%",
|
|
100
|
+
flexDirection: "row",
|
|
101
|
+
// height:40,
|
|
102
|
+
paddingVertical: 20
|
|
103
|
+
},
|
|
104
|
+
_inputMain: {
|
|
105
|
+
width: "75%"
|
|
106
|
+
},
|
|
107
|
+
_filterMain: {
|
|
108
|
+
flexDirection: "row",
|
|
109
|
+
alignItems: "center",
|
|
110
|
+
justifyContent: "center",
|
|
111
|
+
gap: 11,
|
|
112
|
+
paddingLeft: 10
|
|
113
|
+
},
|
|
114
|
+
_filterBtn: {
|
|
115
|
+
width: 35,
|
|
116
|
+
height: 35,
|
|
117
|
+
justifyContent: "center",
|
|
118
|
+
alignItems: "center"
|
|
119
|
+
// backgroundColor:"red"
|
|
120
|
+
},
|
|
121
|
+
_floatingBtn: {
|
|
122
|
+
width: WP(28),
|
|
123
|
+
height: 42,
|
|
124
|
+
position: "absolute",
|
|
125
|
+
right: 12,
|
|
126
|
+
bottom: 70,
|
|
127
|
+
borderRadius: 40,
|
|
128
|
+
overflow: "hidden",
|
|
129
|
+
shadowColor: "#000",
|
|
130
|
+
shadowOffset: {
|
|
131
|
+
width: 0,
|
|
132
|
+
height: 2,
|
|
133
|
+
},
|
|
134
|
+
shadowOpacity: 0.2,
|
|
135
|
+
shadowRadius: 3.84,
|
|
136
|
+
elevation: 5,
|
|
137
|
+
},
|
|
138
|
+
_linearGradient: {
|
|
139
|
+
width: "100%",
|
|
140
|
+
height: "100%",
|
|
141
|
+
flexDirection: "row",
|
|
142
|
+
justifyContent: "space-between",
|
|
143
|
+
alignItems: "center",
|
|
144
|
+
},
|
|
145
|
+
_fabTxt: {
|
|
146
|
+
color: COLORS.whiteColor,
|
|
147
|
+
fontSize: 12,
|
|
148
|
+
fontFamily: FONT_NORMAL,
|
|
149
|
+
paddingRight: 10,
|
|
150
|
+
},
|
|
151
|
+
})
|