-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathApp.js
42 lines (37 loc) · 1.1 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
import React from 'react'
import { StyleSheet, View, StatusBar } from 'react-native'
import { Provider } from 'react-redux'
import createStore from './Redux'
/*
* Both of the following files work for react-navigation
* Routes will always be added and supported by modifying
* the AppNavigation file. Special redux actions/reducers
* will be handled in Redux Navigation
* // use this to use react-navigation no redux
* import AppNavigation from './Navigation/AppNavigation'
*
* // use this to use react-navigation with redux
* import ReduxNavigation from './Navigation/ReduxNavigation'
*/
// We're going to use navigation with redux
import ReduxNavigation from './Navigation/ReduxNavigation'
// create our store
const store = createStore()
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<View style={styles.container}>
<StatusBar barStyle='light-content' />
<ReduxNavigation />
</View>
</Provider>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff'
},
})