-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Expand file tree
/
Copy pathStartGameScreen.js
More file actions
41 lines (37 loc) · 936 Bytes
/
StartGameScreen.js
File metadata and controls
41 lines (37 loc) · 936 Bytes
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
import { TextInput, View, StyleSheet } from 'react-native';
import PrimaryButton from '../components/PrimaryButton';
function StartGameScreen() {
return (
<View style={styles.inputContainer}>
<TextInput style={styles.numberInput} maxLength={2} />
<PrimaryButton>Reset</PrimaryButton>
<PrimaryButton>Confirm</PrimaryButton>
</View>
);
}
export default StartGameScreen;
const styles = StyleSheet.create({
inputContainer: {
marginTop: 100,
marginHorizontal: 24,
padding: 16,
backgroundColor: '#72063c',
borderRadius: 8,
elevation: 4,
shadowColor: 'black',
shadowOffset: { width: 0, height: 2 },
shadowRadius: 6,
shadowOpacity: 0.25
},
numberInput: {
height: 50,
width: 50,
fontSize: 32,
borderBottomColor: '#ddb52f',
borderBottomWidth: 2,
color: '#ddb52f',
marginVertical: 8,
fontWeight: 'bold',
textAlign: 'center'
}
});