-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
68 lines (55 loc) · 1.72 KB
/
App.js
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
65
66
67
68
import React, { Component } from 'react';
import { View } from 'react-native';
import { createAppContainer } from 'react-navigation';
import { createStackNavigator } from 'react-navigation-stack';
import login from './screens/login';
import homepage from './screens/homepage';
import Bookings from './screens/Bookings';
import publicpark from './screens/publicpark';
import Phoenix from './screens/Phoenix';
import Infinity from "./screens/Infinity";
import forgotpass from './screens/forgotpass';
import Destination from './screens/Destination';
import registration from "./screens/registration";
import bookingDetails from './screens/bookingDetails'
import payment from './screens/payment';
import AboutUs from './screens/AboutUs';
import MyProf from './screens/MyProf';
export class App extends Component {
constructor(props) {
super(props);
this.buttonPress = this.buttonPress.bind(this);
}
buttonPress() {
console.log('called');
this.props.navigation.navigate('Login');
}
render() {
return (
<View>
<button onClick={this.buttonPress}>hay</button>
</View>
);
}
}
const AppStackNavigator = createStackNavigator({
//headerMode: false,
//bar:barcode,
Login: login,
Home:homepage,
Bookings:Bookings,
//Barcode:barcode,
InfinityMap:Infinity,
PublicParking: publicpark,
PhoenixMap:Phoenix,
ForgotPassword:forgotpass,
Destination:Destination,
AboutUs:AboutUs,
MyProfile:MyProf,
Registration:registration,
BookingDetails: bookingDetails,
// Slots: Slot,
Payment: payment,
})
const Appcont = createAppContainer(AppStackNavigator);
export default Appcont;