File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ function App({
6161 < View style = { [ styles . content , { backgroundColor : theme . colors . surface } ] } >
6262 < Title > Examples</ Title >
6363 < View style = { styles . switchContainer } >
64- < Text > Dark mode</ Text >
64+ < Text style = { styles . switchLabel } > Dark mode</ Text >
6565 < View style = { styles . switchSpace } />
6666 < Switch value = { dark } onValueChange = { onToggleDarkMode } />
6767 </ View >
@@ -165,8 +165,13 @@ const styles = StyleSheet.create({
165165 alignSelf : 'center' ,
166166 flex : 1 ,
167167 } ,
168- switchContainer : { flexDirection : 'row' , marginTop : 24 } ,
168+ switchContainer : {
169+ flexDirection : 'row' ,
170+ marginTop : 24 ,
171+ alignItems : 'center' ,
172+ } ,
169173 switchSpace : { flex : 1 } ,
174+ switchLabel : { fontSize : 16 } ,
170175 buttons : { flexDirection : 'row' , marginTop : 24 } ,
171176 buttonSeparator : { width : 6 } ,
172177} ) ;
You can’t perform that action at this time.
0 commit comments