-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
29 lines (25 loc) · 751 Bytes
/
App.js
File metadata and controls
29 lines (25 loc) · 751 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
import AppLoading from 'expo-app-loading'
import { StatusBar } from 'expo-status-bar'
import React, { useState } from 'react'
import { Provider } from 'react-redux'
import store from './src/store'
import { boostrap } from './src/bootstrap'
import { AppNavigation } from './src/navigation/AppNavigation'
export default function App() {
const [isReady, setIsReady] = useState(false)
if (!isReady) {
return (
<AppLoading
startAsync={boostrap}
onFinish={() => setIsReady(true)}
onError={console.warn}
/>
)
}
return (
<Provider store={store}>
<AppNavigation />
<StatusBar style='auto' />
</Provider>
)
}