@@ -18,115 +18,133 @@ const log = () => {
1818
1919class Home extends Component {
2020 render ( ) {
21- console . log ( 'props:::' , this . props )
2221 const { toggleSideMenu } = this . props
2322 return (
24- < ScrollView style = { { backgroundColor : 'white' } } >
23+ < ScrollView
24+ ref = 'ScrollView'
25+ style = { { backgroundColor : 'white' } } >
2526 < View style = { styles . hero } >
2627 < Icon color = 'white' name = 'whatshot' size = { 62 } />
2728 < Text style = { styles . heading } > Buttons</ Text >
2829 </ View >
2930 < Button
31+ fontFamily = 'Lato'
3032 small
31- backgroundColor = { socialColors . facebook }
33+ backgroundColor = '#9C27B0'
3234 onPress = { ( ) => log ( ) }
3335 title = 'SMALL BUTTON'
3436 buttonStyle = { styles . button } />
3537 < Button
38+ fontFamily = 'Lato'
3639 small
37- backgroundColor = { socialColors . stumbleupon }
40+ backgroundColor = '#2196F3'
3841 icon = { { name : 'accessibility' } }
3942 onPress = { ( ) => toggleSideMenu ( ) }
4043 title = 'TOGGLE SIDE MENU' />
4144 < Button
45+ fontFamily = 'Lato'
4246 iconRight
4347 small
44- backgroundColor = { socialColors . quora }
48+ backgroundColor = '#009688'
4549 icon = { { name : 'invert-colors' } }
4650 onPress = { ( ) => log ( ) }
4751 title = 'SMALL WITH RIGHT ICON' />
4852 < Button
53+ fontFamily = 'Lato'
4954 iconRight
5055 small
51- backgroundColor = { socialColors . tumblr }
56+ backgroundColor = '#8BC34A'
5257 icon = { { name : 'motorcycle' } }
5358 onPress = { ( ) => log ( ) }
5459 title = 'SMALL WITH RIGHT ICON' />
5560 < Button
61+ fontFamily = 'Lato'
5662 raised
5763 small
58- backgroundColor = { socialColors . foursquare }
64+ backgroundColor = '#FFC107'
5965 icon = { { name : 'card-travel' } }
6066 onPress = { ( ) => log ( ) }
6167 title = 'SMALL BUTTON RAISED' />
6268 < Button
69+ fontFamily = 'Lato'
6370 raised
6471 small
65- backgroundColor = { socialColors . vimeo }
72+ backgroundColor = '#FF5722'
6673 icon = { { name : 'touch-app' } }
6774 onPress = { ( ) => log ( ) }
6875 title = 'SMALL BUTTON RAISED' />
6976 < Button
77+ fontFamily = 'Lato'
7078 raised
7179 small
72- backgroundColor = { socialColors . twitter }
80+ backgroundColor = '#9E9E9E'
7381 icon = { { name : 'new-releases' } }
7482 onPress = { ( ) => log ( ) }
7583 title = 'SMALL BUTTON RAISED' />
7684 < Button
85+ fontFamily = 'Lato'
7786 raised
7887 small
79- backgroundColor = { socialColors . linkedin }
88+ backgroundColor = '#E91E63'
8089 icon = { { name : 'business' } }
8190 onPress = { ( ) => log ( ) }
8291 title = 'SMALL BUTTON RAISED' />
8392 < Button
93+ fontFamily = 'Lato'
8494 raised
8595 small
86- backgroundColor = { socialColors . pinterest }
96+ backgroundColor = '#3F51B5'
8797 icon = { { name : 'send' } }
8898 onPress = { ( ) => log ( ) }
8999 title = 'SMALL BUTTON RAISED' />
90100 < Button
101+ fontFamily = 'Lato'
91102 raised
92103 small
93104 onPress = { ( ) => log ( ) }
94105 title = 'SMALL BUTTON RAISED' />
95106
96107 < Button
108+ fontFamily = 'Lato'
97109 onPress = { ( ) => log ( ) }
98- backgroundColor = { socialColors . facebook }
110+ backgroundColor = '#9C27B0'
99111 title = 'BUTTON' />
100112 < Button
101- backgroundColor = { socialColors . stumbleupon }
113+ fontFamily = 'Lato'
114+ backgroundColor = '#2196F3'
102115 icon = { { name : 'cached' } }
103116 title = 'BUTTON WITH ICON' />
104117 < Button
105- backgroundColor = { socialColors . quora }
118+ fontFamily = 'Lato'
119+ backgroundColor = '#009688'
106120 raised
107121 icon = { { name : 'album' } }
108122 title = 'RAISED WITH ICON' />
109123 < Button
124+ fontFamily = 'Lato'
110125 raised
111126 iconRight
112- backgroundColor = { socialColors . tumblr }
127+ backgroundColor = '#8BC34A'
113128 icon = { { name : 'accessibility' } }
114129 title = 'RAISED RIGHT ICON' />
115130 < Button
131+ fontFamily = 'Lato'
116132 raised
117133 iconRight
118- backgroundColor = { socialColors . foursquare }
134+ backgroundColor = '#FFC107'
119135 icon = { { name : 'account-balance' } }
120136 title = 'RAISED RIGHT ICON' />
121137 < Button
138+ fontFamily = 'Lato'
122139 raised
123- backgroundColor = { socialColors . vimeo }
140+ backgroundColor = '#FF5722'
124141 icon = { { name : 'change-history' } }
125142 title = 'RAISED WITH ICON' />
126143 < Button
144+ fontFamily = 'Lato'
127145 buttonStyle = { [ { marginBottom : 15 } ] }
128146 icon = { { name : 'code' } }
129- backgroundColor = { socialColors . twitter }
147+ backgroundColor = '#9E9E9E'
130148 title = 'ANOTHER BUTTON' />
131149 </ ScrollView >
132150 )
0 commit comments