-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLanding.tsx
executable file
·64 lines (60 loc) · 1.4 KB
/
Landing.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
60
61
62
63
64
import React from 'react';
import {
StyleSheet,
View,
Image,
Text,
ViewStyle,
TextStyle,
ImageStyle,
} from 'react-native';
import DefaultBody from './src/components/defaultBody';
import {GlobalStyles} from './src/styles/globalStyles';
import {Button} from './src/components/button';
import {navigationTypes} from './src/navigation/navigationTypes';
const App: React.FC<navigationTypes> = ({navigation}) => {
return (
<DefaultBody>
<View style={styles.logoWrapper}>
<Image
style={styles.appLogo}
source={require('./assets/img/appIcon.png')}
/>
<Text style={styles.title}>Guess Game</Text>
</View>
<View style={styles.buttonWrapper}>
<Button
title="Start"
onPress={() => navigation.navigate('PlayerSetting')}
/>
</View>
</DefaultBody>
);
};
const styles = StyleSheet.create({
logoWrapper: {
flex: 3,
justifyContent: 'center',
alignSelf: 'center',
} as ViewStyle,
title: {
fontSize: 25,
color: '#3D405B',
fontWeight: 'bold',
textAlign: 'center',
paddingTop: 20,
fontFamily: GlobalStyles.defaultFont,
} as TextStyle,
buttonWrapper: {
flex: 1,
justifyContent: 'flex-end',
} as ViewStyle,
appLogo: {
width: 150,
height: 150,
tintColor: '#3D405B',
marginRight: 10,
alignSelf: 'center',
} as ImageStyle,
});
export default App;