Skip to content

Commit 5655b74

Browse files
committed
update npm packages
1 parent 18b6b2e commit 5655b74

File tree

3 files changed

+462
-75
lines changed

3 files changed

+462
-75
lines changed

App.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import {
66
Switch,
77
AsyncStorage,
88
Button,
9-
ScrollView
9+
ScrollView,
10+
CheckBox
1011
} from 'react-native';
1112

1213
export default class App extends Component {
@@ -320,9 +321,10 @@ export default class App extends Component {
320321
display: 'flex',
321322
flexDirection: 'row',
322323
justifyContent: 'space-between',
324+
alignItems:'center'
323325
}}
324326
>
325-
<Switch
327+
<CheckBox
326328
value={ todo.isDone }
327329
onChange={() => this.handleToggle(todo.id)}
328330
/>

Apps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
ReloadInstructions,
2525
} from 'react-native/Libraries/NewAppScreen';
2626

27-
const App: () => React$Node = () => {
27+
const App = () => {
2828
return (
2929
<>
3030
<StatusBar barStyle="dark-content" />

0 commit comments

Comments
 (0)