2022-09-18 06:24:37 +00:00
|
|
|
import 'react-native-gesture-handler';
|
2022-01-14 07:59:53 +00:00
|
|
|
import React from 'react';
|
2022-09-07 07:32:06 +00:00
|
|
|
import { NativeRouter } from "react-router-native";
|
|
|
|
import { Routes, Route } from 'react-router-dom';
|
2022-09-07 21:21:45 +00:00
|
|
|
import { Root } from 'src/root/Root';
|
|
|
|
import { Access } from 'src/access/Access';
|
|
|
|
import { Session } from 'src/session/Session';
|
|
|
|
import { Admin } from 'src/admin/Admin';
|
2022-09-12 22:18:27 +00:00
|
|
|
import { StoreContextProvider } from 'context/StoreContext';
|
2022-09-07 21:21:45 +00:00
|
|
|
import { AppContextProvider } from 'context/AppContext';
|
2022-09-14 19:18:16 +00:00
|
|
|
import { AccountContextProvider } from 'context/AccountContext';
|
2022-09-14 07:27:49 +00:00
|
|
|
import { ProfileContextProvider } from 'context/ProfileContext';
|
2022-09-15 08:03:20 +00:00
|
|
|
import { CardContextProvider } from 'context/CardContext';
|
|
|
|
import { ChannelContextProvider } from 'context/ChannelContext';
|
2022-09-19 19:07:33 +00:00
|
|
|
import { SafeAreaProvider, SafeAreaView } from 'react-native-safe-area-context';
|
|
|
|
import { NavigationContainer } from '@react-navigation/native';
|
2022-01-14 07:59:53 +00:00
|
|
|
|
2022-09-06 21:38:53 +00:00
|
|
|
export default function App() {
|
2022-09-07 21:21:45 +00:00
|
|
|
|
2022-01-14 07:59:53 +00:00
|
|
|
return (
|
2022-09-12 22:18:27 +00:00
|
|
|
<StoreContextProvider>
|
2022-09-15 08:03:20 +00:00
|
|
|
<CardContextProvider>
|
|
|
|
<ChannelContextProvider>
|
|
|
|
<AccountContextProvider>
|
|
|
|
<ProfileContextProvider>
|
|
|
|
<AppContextProvider>
|
2022-09-19 19:07:33 +00:00
|
|
|
<SafeAreaProvider>
|
|
|
|
<NativeRouter>
|
|
|
|
<Routes>
|
|
|
|
<Route path="/" element={ <Root /> } />
|
|
|
|
<Route path="/admin" element={ <Admin /> } />
|
|
|
|
<Route path="/login" element={ <Access mode="login" /> } />
|
|
|
|
<Route path="/reset" element={ <Access mode="reset" /> } />
|
|
|
|
<Route path="/create" element={ <Access mode="create" /> } />
|
|
|
|
<Route path="/session" element={ <NavigationContainer><Session/></NavigationContainer> } />
|
|
|
|
</Routes>
|
|
|
|
</NativeRouter>
|
|
|
|
</SafeAreaProvider>
|
2022-09-15 08:03:20 +00:00
|
|
|
</AppContextProvider>
|
|
|
|
</ProfileContextProvider>
|
|
|
|
</AccountContextProvider>
|
|
|
|
</ChannelContextProvider>
|
|
|
|
</CardContextProvider>
|
2022-09-12 22:18:27 +00:00
|
|
|
</StoreContextProvider>
|
2022-01-14 07:59:53 +00:00
|
|
|
);
|
2022-09-06 21:38:53 +00:00
|
|
|
}
|
2022-01-14 07:59:53 +00:00
|
|
|
|