6
6
* @flow
7
7
*/
8
8
9
- import React , { Component } from 'react' ;
10
- import { Platform , StyleSheet , Text , View } from 'react-native' ;
9
+ import React , { Component } from 'react' ;
10
+ import { Platform , StyleSheet , Text , View } from 'react-native' ;
11
+ import { Provider } from 'react-redux' ;
12
+ import store from './src/store' ;
11
13
12
14
const instructions = Platform . select ( {
13
15
ios : 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu' ,
@@ -16,15 +18,17 @@ const instructions = Platform.select({
16
18
'Shake or press menu button for dev menu' ,
17
19
} ) ;
18
20
19
- type Props = { } ;
20
- export default class App extends Component < Props > {
21
+
22
+ export default class App extends Component {
21
23
render ( ) {
22
24
return (
23
- < View style = { styles . container } >
24
- < Text style = { styles . welcome } > Welcome to React Native!</ Text >
25
- < Text style = { styles . instructions } > To get started, edit App.js</ Text >
26
- < Text style = { styles . instructions } > { instructions } </ Text >
27
- </ View >
25
+ < Provider store = { store } >
26
+ < View style = { styles . container } >
27
+ < Text style = { styles . welcome } > Welcome to React Native!</ Text >
28
+ < Text style = { styles . instructions } > To get started, edit App.js</ Text >
29
+ < Text style = { styles . instructions } > { instructions } </ Text >
30
+ </ View >
31
+ </ Provider >
28
32
) ;
29
33
}
30
34
}
0 commit comments