-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
53 lines (50 loc) · 1.14 KB
/
App.js
File metadata and controls
53 lines (50 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import React from 'react';
import { StyleSheet, StatusBar, Text, View, TextInput, Dimensions, Platform } from 'react-native';
const { height, width } = Dimensions.get("window");
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<StatusBar barStyle="light-content" />
<Text style={styles.title}>Kawai To Do</Text>
<View style={styles.card}>
<TextInput style={styles.input} placeholder={"New To Do"} />
</View>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#F23657',
alignItems: 'center',
},
title: {
color: "white",
fontSize: 30,
marginTop:50,
fontWeight: "400",
marginBottom: 30
},
card: {
backgroundColor:"white",
flex: 1,
width: width -50,
borderTopLeftRadius: 10,
borderTopRightRadius: 10,
...Platform.select({
ios: {
shadowColor:"rgb(50, 50, 50)",
shadowRadius: 5,
shadowoffset: {
height: -1,
width: 0
}
},
android: {
elevation: 3
}
})
}
});