@@ -5,7 +5,7 @@ import { PropTypes } from 'prop-types'
5
5
import ExampleActions from 'App/Stores/Example/Actions'
6
6
import { liveInEurope } from 'App/Stores/Example/Selectors'
7
7
import Style from './ExampleScreenStyle'
8
- import { Images } from 'App/Theme'
8
+ import { ApplicationStyles , Helpers , Images , Metrics } from 'App/Theme'
9
9
10
10
/**
11
11
* This is an example of a container component.
@@ -26,13 +26,20 @@ class ExampleScreen extends React.Component {
26
26
27
27
render ( ) {
28
28
return (
29
- < View style = { Style . container } >
29
+ < View
30
+ style = { [
31
+ Helpers . fill ,
32
+ Helpers . rowMain ,
33
+ Metrics . mediumHorizontalMargin ,
34
+ Metrics . mediumVerticalMargin ,
35
+ ] }
36
+ >
30
37
{ this . props . userIsLoading ? (
31
38
< ActivityIndicator size = "large" color = "#0000ff" />
32
39
) : (
33
40
< View >
34
41
< View style = { Style . logoContainer } >
35
- < Image style = { Style . logo } source = { Images . logo } resizeMode = { 'contain' } />
42
+ < Image style = { Helpers . fullSize } source = { Images . logo } resizeMode = { 'contain' } />
36
43
</ View >
37
44
< Text style = { Style . text } > To get started, edit App.js</ Text >
38
45
< Text style = { Style . instructions } > { instructions } </ Text >
@@ -49,13 +56,17 @@ class ExampleScreen extends React.Component {
49
56
</ Text >
50
57
</ View >
51
58
) }
52
- < Button onPress = { ( ) => this . _fetchUser ( ) } title = "Refresh" />
59
+ < Button
60
+ style = { ApplicationStyles . button }
61
+ onPress = { ( ) => this . _fetchUser ( ) }
62
+ title = "Refresh"
63
+ />
53
64
</ View >
54
65
) }
55
66
</ View >
56
67
)
57
68
}
58
-
69
+
59
70
_fetchUser ( ) {
60
71
this . props . fetchUser ( )
61
72
}
0 commit comments