-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
52 lines (48 loc) · 1.82 KB
/
Copy pathApp.js
File metadata and controls
52 lines (48 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import "react-native-gesture-handler";
import { config } from "./config/gluestack-ui.config";
import { GluestackUIProvider, View } from "@gluestack-ui/themed";
import { StatusBar } from "expo-status-bar";
import RootNavigator from "./src/navigation/rootNavigator";
import { NavigationContainer } from "@react-navigation/native";
import { Provider } from "react-redux";
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { Plan } from "./src/views/planner/plan";
import AiPlanner from "./src/components/AiPlanner";
import { LogBox } from "react-native";
import { SettingsPage } from "./src/views/settings";
import { persistor, store } from "./src/redux/store";
import { PersistGate } from "redux-persist/integration/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import Constants from "expo-constants";
import { CheckUpdates } from "./src/components/UpdatesCheck";
import { useFonts, Inter_900Black } from "@expo-google-fonts/inter";
LogBox.ignoreAllLogs();
const queryClient = new QueryClient();
export default function App() {
let [fontsLoaded] = useFonts({
Inter_900Black,
});
if (!fontsLoaded) {
return null;
}
return (
<Provider store={store}>
<CheckUpdates />
<PersistGate loading={null} persistor={persistor}>
<QueryClientProvider client={queryClient}>
<GluestackUIProvider config={config}>
<View style={{ height: Constants.statusBarHeight }}>
<StatusBar style="auto" />
</View>
<NavigationContainer>
<GestureHandlerRootView>
<RootNavigator />
{/* <Plan /> */}
</GestureHandlerRootView>
</NavigationContainer>
</GluestackUIProvider>
</QueryClientProvider>
</PersistGate>
</Provider>
);
}