-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHome.js
More file actions
31 lines (27 loc) · 822 Bytes
/
Home.js
File metadata and controls
31 lines (27 loc) · 822 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
import React from "react";
import { StyleSheet, Text, View, TouchableOpacity, Alert, Button } from 'react-native';
const styles = StyleSheet.create({
head:
{
color:'green',
fontSize: 50,
fontWeight: 'bold',
}
});
class welcome extends React.Component
{
constructor(props){
super(props);
}
render() {
return (
<view style={{position: "absolute",left:200,bottom:150}}>
<Text style={styles.head}>Welcome To My Game</Text>
<View style={{padding:40}}/>
<Button color="green" title='New Game' onPress={() => this.props.navigation.navigate('Game',{'play1':0,'play2':0,})}/>
<View style={{padding:10}}/>
</view>
);
}
}
export default welcome;