-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
26 lines (21 loc) · 802 Bytes
/
index.js
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
import 'react-native-gesture-handler'
import React from 'react'
import Router from './src/Router'
import { AppRegistry } from 'react-native'
import { name } from './app.json'
import { NavigationContainer } from '@react-navigation/native'
import { PersistGate } from 'redux-persist/integration/react'
import { Provider } from 'react-redux'
import { store, pStore } from './src/redux/store'
import Loading from './src/commons/components/Loading'
const { registerComponent } = AppRegistry
const vehicleRentalApp = () => (
<Provider store={store}>
<PersistGate loading={<Loading />} persistor={pStore} >
<NavigationContainer>
<Router />
</NavigationContainer>
</PersistGate>
</Provider>
)
registerComponent(name, () => vehicleRentalApp)