-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.tsx
35 lines (30 loc) · 927 Bytes
/
App.tsx
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
/* eslint-disable import/namespace */
import { LogBox } from 'react-native';
import { StatusBar } from "expo-status-bar";
import { SafeAreaProvider } from "react-native-safe-area-context";
// Redux Toolkit
import { Provider as ReduxProvider } from "react-redux";
import useCachedResources from "./src/hooks/useCachedResources";
import useColorScheme from "./src/hooks/useColorScheme";
import Navigation from "./src/navigation";
import store from './src/redux/store';
const App = () => {
const isLoadingComplete = useCachedResources();
const colorScheme = useColorScheme();
if (!isLoadingComplete) {
return null;
} else {
return (
<>
{LogBox.ignoreAllLogs()}
<SafeAreaProvider>
<ReduxProvider store={store}>
<Navigation colorScheme={colorScheme} />
<StatusBar />
</ReduxProvider>
</SafeAreaProvider>
</>
);
}
};
export default App;