File tree Expand file tree Collapse file tree 3 files changed +462
-75
lines changed Expand file tree Collapse file tree 3 files changed +462
-75
lines changed Original file line number Diff line number Diff line change 6
6
Switch ,
7
7
AsyncStorage ,
8
8
Button ,
9
- ScrollView
9
+ ScrollView ,
10
+ CheckBox
10
11
} from 'react-native' ;
11
12
12
13
export default class App extends Component {
@@ -320,9 +321,10 @@ export default class App extends Component {
320
321
display : 'flex' ,
321
322
flexDirection : 'row' ,
322
323
justifyContent : 'space-between' ,
324
+ alignItems :'center'
323
325
} }
324
326
>
325
- < Switch
327
+ < CheckBox
326
328
value = { todo . isDone }
327
329
onChange = { ( ) => this . handleToggle ( todo . id ) }
328
330
/>
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import {
24
24
ReloadInstructions ,
25
25
} from 'react-native/Libraries/NewAppScreen' ;
26
26
27
- const App : ( ) => React$Node = ( ) => {
27
+ const App = ( ) => {
28
28
return (
29
29
< >
30
30
< StatusBar barStyle = "dark-content" />
You can’t perform that action at this time.
0 commit comments