added custom model for contriution screen

This commit is contained in:
Jaanu423
2025-09-24 14:35:28 +05:30
parent b0b85684ea
commit 7f95ae73a0
11 changed files with 514 additions and 164 deletions
+2 -2
View File
@@ -13,11 +13,11 @@ export async function apiCall<T>(
method: "GET" | "POST" | "PUT" | "DELETE" = "GET",
data?: any,
config?: AxiosRequestConfig
): Promise<T | null> {
): Promise<T | null > {
try {
// Get saved credentials from Keychain
const creds = await Keychain.getGenericPassword();
console.log("hihihi", creds);
// console.log("hihihi", creds);
const headers = {
"Content-Type": "application/json",
...(creds ? { Authorization: `Bearer ${creds.password}` } : {}),
+1
View File
@@ -18,3 +18,4 @@ export const PUT_USER_STATUS = `${BASE_URL}user/profile/status`
export const USER_REQUEST = `${BASE_URL}fund/my-requests`
export const GROUP_ALL_MEMBER = `${BASE_URL}fund/group/all/member`
export const UPDATE_BANK_URL = `${BASE_URL}user/bank/update`;
export const CONTRIBUTE = `${BASE_URL}payments/groups/`;