-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDrawerNav.js
More file actions
71 lines (68 loc) · 1.84 KB
/
DrawerNav.js
File metadata and controls
71 lines (68 loc) · 1.84 KB
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
/** @format */
import * as React from 'react';
import { Button, View } from 'react-native';
import { createDrawerNavigator } from '@react-navigation/drawer';
import Home from './Home';
import Cam2 from './Writes/Cam2';
import ProductPurchaseNavigator from './Purchases/ProductPurchases';
import ExpenseWrite from './Writes/ExpenseWrite';
import OCR from './Writes/Cam2';
import Incomes from './Writes/IncomesWrite';
import IncomePurchasesNavigator from './Purchases/IncomePurchases';
import AllPurchases from './Purchases/AllPurchases';
import { item } from './InterComp/DefaultRouteProps';
const Drawer = createDrawerNavigator();
export default function App() {
return (
<Drawer.Navigator
initialRouteName={Home}
screenOptions={{
drawerStyle: {
backgroundColor: '#111827',
width: 240,
color: 'white'
},
drawerActiveTintColor: '#93c5fd',
drawerInactiveTintColor: 'white'
// drawerIcon: { focused: true, color: 'white' }
}}>
<Drawer.Screen
options={{ title: 'Home' }}
name='Home'
component={Home}
/>
<Drawer.Screen
options={{ title: 'Analisa Pengeluaran' }}
name='ExpenseWrite'
component={ExpenseWrite}
initialParams={item}
/>
<Drawer.Screen
options={{ title: 'Analisa Pengeluaran OCR' }}
name='Expense Write OCR'
component={OCR}
/>
<Drawer.Screen
options={{ title: 'Pemasukan' }}
name='Incomes'
component={Incomes}
initialParams={item}
/>
<Drawer.Screen
options={{ title: 'Profit Produk' }}
name='Product Purchases'
component={ProductPurchaseNavigator}
/>
<Drawer.Screen
options={{ title: 'Profit Pemasukan' }}
name='Income Purchases'
component={IncomePurchasesNavigator}
/>
<Drawer.Screen
options={{ title: 'Semua Profit' }}
name='All Purchases'
component={AllPurchases}
/>
</Drawer.Navigator>
);
}