Merge branch 'master' of https://gitee.com/oneao/workspace
This commit is contained in:
commit
1ac8c2475c
8 files changed
+286
-8
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 (
|
||||
|
||||
+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