-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
29 lines (24 loc) · 833 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
27
28
29
import React from 'react'
import { AppRegistry } from 'react-native'
import { Provider as PaperProvider } from 'react-native-paper'
import 'react-native-gesture-handler'
import { NavigationContainer } from '@react-navigation/native'
import { Provider } from 'react-redux'
import Icon from 'react-native-vector-icons/MaterialIcons'
import App from './App'
import { name as appName } from './app.json'
import configureStore from './src/store'
import theme from './src/styles/theme'
global.Buffer = global.Buffer || require('buffer').Buffer
Icon.loadFont()
const store = configureStore()
const Main = () => (
<NavigationContainer>
<PaperProvider theme={theme}>
<Provider store={store}>
<App />
</Provider>
</PaperProvider>
</NavigationContainer>
)
AppRegistry.registerComponent(appName, () => Main)