/
LoginPage.js
82 lines (78 loc) · 1.92 KB
/
LoginPage.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import React, {Component} from 'react'
import { createAppContainer, createMaterialTopTabNavigator, createStackNavigator } from 'react-navigation'
import Next from './user/NextDaftar'
import ForgetPassword from './user/ForgetPassword'
import Home from '../routes/rootNavigator'
import Register from './user/Register'
import Login from './user/Login'
import Me from './Me'
import Cart from '../screens/Cart';
import Checkout from '../screens/Checkout';
import Profile from '../screens/user/Profile';
import PurchaseHistories from '../screens/PurchaseHistories';
import AddProduct from '../screens/AddProduct';
import SellerPage from '../screens/SellerPage';
import Wishlist from '../screens/user/Wishlist';
import Search from '../screens/Search';
import ListSearch from '../screens/ListSearch';
import AccountSettings from '../screens/user/AccountSettings';
import DetailProduct from '../screens/DetailProduct';
const LogNavigator = createMaterialTopTabNavigator({
Register2: {
screen: Register,
navigationOptions: {
tabBarLabel: 'Daftar',
},
},
Login: {
screen: Login,
navigationOptions: {
tabBarLabel: 'Log In',
}
}
},{
initialRouteName: 'Register2',
swipeEnabled: true,
animationEnabled: false,
tabBarOptions: {
activeTintColor: '#EE4D2D',
inactiveTintColor: '#000000',
upperCaseLabel: false,
labelStyle: {
fontSize: 16,
marginTop: 35,
},
style: {
backgroundColor: '#f2f2f2',
height: 79,
},
indicatorStyle: {
height: 2,
backgroundColor: '#EE4D2D'
}
}
})
const StackNavigator = createStackNavigator({
Login: {
screen: LogNavigator
},
Next: {
screen: Next,
},
ForgetPassword: {
screen: ForgetPassword,
}
},{
initialRouteName: 'Login',
headerMode: 'none'
})
const LogPage = createAppContainer(StackNavigator)
export default class App extends Component {
render(){
return(
<React.Fragment>
<LogPage/>
</React.Fragment>
)
}
}