-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.tsx
More file actions
25 lines (22 loc) · 679 Bytes
/
App.tsx
File metadata and controls
25 lines (22 loc) · 679 Bytes
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
import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { Provider as ReduxProvider } from 'react-redux';
import store from './data/redux';
import useCachedResources from './ui/hooks/useCachedResources';
import Navigation from './ui/navigation';
export default function App() {
const isLoadingComplete = useCachedResources();
if (!isLoadingComplete) {
return null;
} else {
return (
<SafeAreaProvider>
<ReduxProvider store={store}>
<Navigation />
<StatusBar style="dark" />
</ReduxProvider>
</SafeAreaProvider>
);
}
}