mirror of
https://github.com/balzack/databag.git
synced 2025-05-04 15:35:16 +00:00
adding drawer components
This commit is contained in:
parent
89e0d45ab1
commit
dc5119fae7
5
app/client/mobile/src/details/Details.tsx
Normal file
5
app/client/mobile/src/details/Details.tsx
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
import {Text} from 'react-native-paper';
|
||||||
|
|
||||||
|
export function Details() {
|
||||||
|
return <Text>DETAILS</Text>
|
||||||
|
}
|
3
app/client/mobile/src/profile/Profile.tsx
Normal file
3
app/client/mobile/src/profile/Profile.tsx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export function Profile() {
|
||||||
|
return <></>
|
||||||
|
}
|
4
app/client/mobile/src/registry/Registry.tsx
Normal file
4
app/client/mobile/src/registry/Registry.tsx
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
export function Registry() {
|
||||||
|
return <></>
|
||||||
|
}
|
||||||
|
|
@ -6,6 +6,9 @@ import { DisplayContext } from '../context/DisplayContext';
|
|||||||
import { Settings } from '../settings/Settings';
|
import { Settings } from '../settings/Settings';
|
||||||
import { Channels } from '../channels/Channels';
|
import { Channels } from '../channels/Channels';
|
||||||
import { Contacts } from '../contacts/Contacts';
|
import { Contacts } from '../contacts/Contacts';
|
||||||
|
import { Registry } from '../registry/Registry';
|
||||||
|
import { Profile } from '../profile/Profile';
|
||||||
|
import { Details } from '../details/Details';
|
||||||
|
|
||||||
import { NavigationContainer } from '@react-navigation/native';
|
import { NavigationContainer } from '@react-navigation/native';
|
||||||
import { createDrawerNavigator } from '@react-navigation/drawer';
|
import { createDrawerNavigator } from '@react-navigation/drawer';
|
||||||
@ -59,7 +62,7 @@ function DetailsScreen({ nav }) {
|
|||||||
return (
|
return (
|
||||||
<ProfileDrawer.Navigator
|
<ProfileDrawer.Navigator
|
||||||
id="ProfileDrawer"
|
id="ProfileDrawer"
|
||||||
drawerContent={(props) => <Text>Details</Text>}
|
drawerContent={Details}
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
drawerPosition: 'right',
|
drawerPosition: 'right',
|
||||||
drawerType: 'front',
|
drawerType: 'front',
|
||||||
@ -77,7 +80,7 @@ function ProfileScreen({ nav }) {
|
|||||||
return (
|
return (
|
||||||
<ProfileDrawer.Navigator
|
<ProfileDrawer.Navigator
|
||||||
id="ProfileDrawer"
|
id="ProfileDrawer"
|
||||||
drawerContent={(props) => <Text>Profile</Text>}
|
drawerContent={Profile}
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
drawerPosition: 'right',
|
drawerPosition: 'right',
|
||||||
drawerType: 'front',
|
drawerType: 'front',
|
||||||
@ -95,7 +98,7 @@ function RegistryScreen({ nav }) {
|
|||||||
return (
|
return (
|
||||||
<RegistryDrawer.Navigator
|
<RegistryDrawer.Navigator
|
||||||
id="RegistryDrawer"
|
id="RegistryDrawer"
|
||||||
drawerContent={(props) => <Text>Registry</Text>}
|
drawerContent={Registry}
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
drawerPosition: 'right',
|
drawerPosition: 'right',
|
||||||
drawerType: 'front',
|
drawerType: 'front',
|
||||||
@ -113,7 +116,7 @@ function ContactsScreen({ nav }) {
|
|||||||
return (
|
return (
|
||||||
<ContactsDrawer.Navigator
|
<ContactsDrawer.Navigator
|
||||||
id="ContactsDrawer"
|
id="ContactsDrawer"
|
||||||
drawerContent={(props) => <Text>Contacts</Text>}
|
drawerContent={Contacts}
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
drawerPosition: 'right',
|
drawerPosition: 'right',
|
||||||
drawerType: 'front',
|
drawerType: 'front',
|
||||||
@ -131,7 +134,7 @@ function SettingsScreen({ nav }) {
|
|||||||
return (
|
return (
|
||||||
<SettingsDrawer.Navigator
|
<SettingsDrawer.Navigator
|
||||||
id="SettingsDrawer"
|
id="SettingsDrawer"
|
||||||
drawerContent={(props) => <Text>Settings</Text>}
|
drawerContent={Settings}
|
||||||
screenOptions={{
|
screenOptions={{
|
||||||
drawerPosition: 'right',
|
drawerPosition: 'right',
|
||||||
drawerType: 'front',
|
drawerType: 'front',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user