-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
59 lines (56 loc) · 1.45 KB
/
App.tsx
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
54
55
56
57
58
59
import { StyleSheet, Text, View, Platform, Image, TouchableOpacity} from 'react-native';
import { Button, Icon } from 'native-base';
import AppBar from "./src/Components/AppBar/AppBar.js";
import { color } from 'native-base/lib/typescript/theme/styled-system.js';
export default function App() {
return (
<View style={styles.safe}>
<AppBar title="Statify"/>
<View style={styles.container}>
<Text style={styles.title}>Please Log in to use Statify</Text>
<TouchableOpacity style={styles.likeButton}>
<View style={styles.buttonContainer}>
<Image style={{width: 25, height: 25}} source={require('./assets/logo.svg')}></Image>
<Text style={{color: "white"}}>Here</Text>
</View>
</TouchableOpacity>
</View>
</View>
);
}
const styles = StyleSheet.create({
safe:{
flex: 1,
paddingTop: Platform.OS === 'android' ? 25 : 0,
},
container: {
flex: 1,
backgroundColor: '#1e1e1e',
alignItems: 'center',
justifyContent: 'center',
gap: 16
},
likeButton:{
padding: 12,
borderRadius: 8,
backgroundColor: "#1ED760",
},
buttonContainer:{
flexDirection: 'row',
alignItems: 'center',
justifyContent: 'space-between',
gap: 2
},
title:{
color: 'white',
fontSize: 28,
textAlign: 'center'
},
image:{
width: 30,
height: 30,
},
button:{
flexDirection: 'row'
},
});