diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-06-09 21:34:43 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-06-09 21:34:43 -0500 |
commit | 967f9fc474f2903dd2c12ef4f662ead1592ea26c (patch) | |
tree | af90380121af16ce2382d725fee3d50cd6332598 /src/screens/Profile.tsx | |
parent | 802222fe7181303d710607129e1c74427f07c97c (diff) | |
download | voidsky-967f9fc474f2903dd2c12ef4f662ead1592ea26c.tar.zst |
Add desktop shell
Diffstat (limited to 'src/screens/Profile.tsx')
-rw-r--r-- | src/screens/Profile.tsx | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/screens/Profile.tsx b/src/screens/Profile.tsx index ffd30a499..76915b48f 100644 --- a/src/screens/Profile.tsx +++ b/src/screens/Profile.tsx @@ -1,7 +1,16 @@ import React from 'react' -import {Text} from 'react-native' -import type {RootStackScreenProps} from '../routes/types' +import {Shell} from '../platform/shell' +import {View, Text} from 'react-native' +import type {RootTabsScreenProps} from '../routes/types' -export const Profile = ({route}: RootStackScreenProps<'Profile'>) => { - return <Text>This is {route.params.name}'s profile</Text> +export const Profile = ({route}: RootTabsScreenProps<'Profile'>) => { + return ( + <Shell> + <View style={{justifyContent: 'center', alignItems: 'center'}}> + <Text style={{fontSize: 20, fontWeight: 'bold'}}> + {route.params?.name}'s profile + </Text> + </View> + </Shell> + ) } |