This commit is contained in:
oneao committed 2026-04-14 18:08:25 +08:00
commit 1ac8c2475c
8 files changed
+286 -8

No files matched your search

+12
View File
@@ -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,
});
+2
View File
@@ -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 (
+9 -2
View File
@@ -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,
}
}