Turn the main menu into a 'drawer' instead of a screen in the history
This commit is contained in:
parent
53b8f0d040
commit
e73c7cee39
4 changed files with 100 additions and 50 deletions
|
@ -1,7 +1,6 @@
|
|||
import React, {MutableRefObject} from 'react'
|
||||
import {FlatList} from 'react-native'
|
||||
import {IconProp} from '@fortawesome/fontawesome-svg-core'
|
||||
import {Menu} from './screens/Menu'
|
||||
import {Home} from './screens/Home'
|
||||
import {Contacts} from './screens/Contacts'
|
||||
import {Search} from './screens/Search'
|
||||
|
@ -34,7 +33,6 @@ export type MatchResult = {
|
|||
|
||||
const r = (pattern: string) => new RegExp('^' + pattern + '([?]|$)', 'i')
|
||||
export const routes: Route[] = [
|
||||
[Menu, 'Menu', 'bars', r('/menu')],
|
||||
[Home, 'Home', 'house', r('/')],
|
||||
[Contacts, 'Contacts', ['far', 'circle-user'], r('/contacts')],
|
||||
[Search, 'Search', 'magnifying-glass', r('/search')],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue