forked from lucas.delanier/MovieFinder
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.
30 lines
946 B
30 lines
946 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, useDispatch} from "react-redux";
|
|
import {useEffect, useState} from "react";
|
|
import {getTrendingID} from "./redux/actions/actionGetTrendingID";
|
|
|
|
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>
|
|
);
|
|
}
|
|
}
|