u
This commit is contained in:
1 parent
157c84b0b4
commit
bdccc5c417
9 files changed
+287
-14
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import type { Method } from "alova";
|
||||
import type { AxiosError } from "axios";
|
||||
import { axiosRequestAdapter } from "@alova/adapter-axios";
|
||||
import { createAlova } from "alova";
|
||||
import { toast } from "sonner-native";
|
||||
|
||||
const alovaInstance = createAlova({
|
||||
baseURL: "",
|
||||
requestAdapter: axiosRequestAdapter(),
|
||||
timeout: 5000,
|
||||
cacheFor: null,
|
||||
});
|
||||
@@ -4,6 +4,8 @@ import { DarkTheme, DefaultTheme, ThemeProvider } from "@react-navigation/native
|
||||
import "@/styles/global.css";
|
||||
|
||||
export default function RootLayout() {
|
||||
console.log(process.env.EXPO_PUBLIC_API_URL);
|
||||
|
||||
const isDark = useIsDark();
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,10 +1,5 @@
|
||||
import React from "react";
|
||||
import {
|
||||
CircleDollarSignIcon,
|
||||
ChartNoAxesColumnIcon,
|
||||
LayoutGridIcon,
|
||||
PlusIcon,
|
||||
} from "lucide-react-native";
|
||||
import { CircleDollarSignIcon, ChartNoAxesColumnIcon, PlusIcon } from "lucide-react-native";
|
||||
import ModuleLayout from "@/layouts/ModuleLayout";
|
||||
|
||||
const tabs = [
|
||||
|
||||
+9
-2
@@ -1,5 +1,12 @@
|
||||
export {}
|
||||
export {};
|
||||
|
||||
declare global {
|
||||
type ThemeScheme = 'light' | 'dark' | 'system'
|
||||
type ThemeScheme = "light" | "dark" | "system";
|
||||
|
||||
enum HttpReponseCode {
|
||||
Success = 1000,
|
||||
Unauthorized = 1001,
|
||||
BusinessError = 2000,
|
||||
SystemError = 3000,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user