You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
824 B
29 lines
824 B
import {StatusBar} from 'expo-status-bar';
|
|
import {SafeAreaProvider} from 'react-native-safe-area-context';
|
|
import useCachedResources from './hooks/useCachedResources';
|
|
import useColorScheme from './hooks/useColorScheme';
|
|
import Navigation from './navigation';
|
|
import {View} from "react-native";
|
|
import store from "./redux/store";
|
|
import {Provider} from "react-redux";
|
|
|
|
|
|
export default function App() {
|
|
const isLoadingComplete = useCachedResources();
|
|
const colorScheme = useColorScheme();
|
|
|
|
|
|
if (!isLoadingComplete) {
|
|
return null;
|
|
} else {
|
|
return (
|
|
<Provider store={store}>
|
|
<SafeAreaProvider>
|
|
<Navigation colorScheme={colorScheme}/>
|
|
<StatusBar/>
|
|
</SafeAreaProvider>
|
|
</Provider>
|
|
);
|
|
}
|
|
}
|