Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
Lokal Utselger-App
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bacheloroppgave-159
Lokal Utselger-App
Merge requests
!4
Added custom drawer
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Added custom drawer
drawer-items
into
main
Overview
0
Commits
1
Pipelines
0
Changes
2
Merged
John Fredrik Bendvold
requested to merge
drawer-items
into
main
9 months ago
Overview
0
Commits
1
Pipelines
0
Changes
2
Expand
1
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
763c2fcb
1 commit,
9 months ago
2 files
+
124
−
37
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
app/main/_layout.js
+
32
−
37
Options
@@ -2,49 +2,44 @@ import { Stack } from "expo-router";
import
{
GestureHandlerRootView
}
from
'
react-native-gesture-handler
'
;
import
{
Drawer
}
from
'
expo-router/drawer
'
;
import
Ionicons
from
'
@expo/vector-icons/Ionicons
'
;
import
{
View
}
from
'
react-native
'
;
import
CustomDrawer
from
"
../../components/drawer/custom-drawer
"
;
export
default
function
Layout
()
{
export
default
function
Layout
()
{
return
(
<>
<
Stack
.
Screen
options
=
{{
headerShown
:
false
}}
/
>
<
GestureHandlerRootView
style
=
{{
flex
:
1
}}
>
<
Drawer
screenOptions
=
{{
headerShown
:
false
,
headerStyle
:
{
backgroundColor
:
'
#F7EDE2
'
,
},
headerTintColor
:
'
#333
'
,
headerTitleStyle
:
{
fontWeight
:
'
bold
'
,
fontFamily
:
'
Nunito-Bold
'
,
},
drawerActiveTintColor
:
'
#84A59D
'
,
drawerLabelStyle
:
{
fontFamily
:
'
Nunito
'
,
fontSize
:
16
,
},
}}
>
<
Drawer
.
Screen
name
=
"
orders
"
<
Stack
.
Screen
options
=
{{
headerShown
:
false
}}
/
>
<
GestureHandlerRootView
style
=
{{
flex
:
1
}}
>
<
Drawer
screenOptions
=
{{
headerShown
:
false
,
drawerActiveTintColor
:
'
#84A59D
'
,
drawerLabelStyle
:
{
fontFamily
:
'
Nunito
'
,
fontSize
:
16
,
},
}}
drawerContent
=
{
CustomDrawer
}
>
<
Drawer
.
Screen
name
=
"
orders
"
options
=
{{
title
:
'
Bestillinger
'
,
drawerLabel
:
'
Bestillinger
'
,
drawerIcon
:
({
focused
,
color
,
size
})
=>
{
return
<
Ionicons
name
=
{
focused
?
'
cart
'
:
'
cart-outline
'
}
size
=
{
36
}
color
=
{
color
}
/>
;
},
}}
/
>
<
Drawer
.
Screen
name
=
"
location
"
options
=
{{
title
:
'
Bestillinger
'
,
drawerLabel
:
'
Bestillinger
'
,
title
:
'
Ditt utsalg
'
,
drawerIcon
:
({
focused
,
color
,
size
})
=>
{
return
<
Ionicons
name
=
{
focused
?
'
cart
'
:
'
car
t-outline
'
}
size
=
{
36
}
color
=
{
color
}
/>
;
}
,
return
<
Ionicons
name
=
{
focused
?
'
storefront
'
:
'
storefron
t-outline
'
}
size
=
{
36
}
color
=
{
color
}
/>
;
}
}}
/
>
<
Drawer
.
Screen
name
=
"
location
"
options
=
{{
title
:
'
Ditt utsalg
'
,
drawerIcon
:
({
focused
,
color
,
size
})
=>
{
return
<
Ionicons
name
=
{
focused
?
'
storefront
'
:
'
storefront-outline
'
}
size
=
{
36
}
color
=
{
color
}
/>
;
}
}}
/
>
<
/Drawer
>
<
/GestureHandlerRootView
>
/
>
<
/Drawer
>
<
/GestureHandlerRootView
>
<
/
>
);
}
\ No newline at end of file
Loading