@@ -5,7 +5,7 @@ import { PropTypes } from 'prop-types'
55import ExampleActions from 'App/Stores/Example/Actions'
66import { liveInEurope } from 'App/Stores/Example/Selectors'
77import Style from './ExampleScreenStyle'
8- import { Images } from 'App/Theme'
8+ import { ApplicationStyles , Helpers , Images , Metrics } from 'App/Theme'
99
1010/**
1111 * This is an example of a container component.
@@ -26,13 +26,20 @@ class ExampleScreen extends React.Component {
2626
2727 render ( ) {
2828 return (
29- < View style = { Style . container } >
29+ < View
30+ style = { [
31+ Helpers . fill ,
32+ Helpers . rowMain ,
33+ Metrics . mediumHorizontalMargin ,
34+ Metrics . mediumVerticalMargin ,
35+ ] }
36+ >
3037 { this . props . userIsLoading ? (
3138 < ActivityIndicator size = "large" color = "#0000ff" />
3239 ) : (
3340 < View >
3441 < View style = { Style . logoContainer } >
35- < Image style = { Style . logo } source = { Images . logo } resizeMode = { 'contain' } />
42+ < Image style = { Helpers . fullSize } source = { Images . logo } resizeMode = { 'contain' } />
3643 </ View >
3744 < Text style = { Style . text } > To get started, edit App.js</ Text >
3845 < Text style = { Style . instructions } > { instructions } </ Text >
@@ -49,13 +56,17 @@ class ExampleScreen extends React.Component {
4956 </ Text >
5057 </ View >
5158 ) }
52- < Button onPress = { ( ) => this . _fetchUser ( ) } title = "Refresh" />
59+ < Button
60+ style = { ApplicationStyles . button }
61+ onPress = { ( ) => this . _fetchUser ( ) }
62+ title = "Refresh"
63+ />
5364 </ View >
5465 ) }
5566 </ View >
5667 )
5768 }
58-
69+
5970 _fetchUser ( ) {
6071 this . props . fetchUser ( )
6172 }
0 commit comments