-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
31 lines (24 loc) · 855 Bytes
/
App.js
File metadata and controls
31 lines (24 loc) · 855 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
26
27
28
29
30
31
import 'react-native-gesture-handler';
import React, { useState } from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { AppLoading } from "expo";
import { Provider } from "react-redux";
import store from './src/store/index';
import { bootstrap } from "./src/bootstrap";
import { AppNavigation } from "./src/navigation/AppNavigation";
export default function App() {
const [isReady, setIsReady] = useState(false);
if (!isReady) {
return <AppLoading startAsync={ bootstrap }
onFinish={ () => setIsReady(true) }
onError={(error) => console.log(error)}
/>
}
return (
<Provider store={ store }>
<NavigationContainer>
<AppNavigation/>
</NavigationContainer>
</Provider>
);
}