-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
29 lines (25 loc) · 864 Bytes
/
App.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
27
28
29
import { StatusBar } from 'expo-status-bar'
import * as React from 'react'
import { SafeAreaProvider } from 'react-native-safe-area-context'
import { BreadProvider } from 'material-bread'
import { Provider } from 'react-redux'
import { ActionSheetProvider } from '@expo/react-native-action-sheet'
import { Navigation } from './src/components/root'
import { createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import AppReducer from './src/state/reducers'
const store = createStore(AppReducer, applyMiddleware(thunk))
export default function App() {
return (
<SafeAreaProvider>
<BreadProvider>
<ActionSheetProvider>
<Provider store={store}>
<Navigation />
</Provider>
</ActionSheetProvider>
</BreadProvider>
<StatusBar style="auto" />
</SafeAreaProvider>
)
}