about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-07-26 10:11:02 -0500
committerPaul Frazee <pfrazee@gmail.com>2022-07-26 10:11:02 -0500
commitadc25ce468666bf38892cc8251165a6fde37a2e1 (patch)
tree70f052002b4c9a22dca498561c244c2d03d92a01 /src
parentefc28b00987d8cc63aea56109e221e7a2e78b787 (diff)
downloadvoidsky-adc25ce468666bf38892cc8251165a6fde37a2e1.tar.zst
Fix layout in profile view
Diffstat (limited to 'src')
-rw-r--r--src/view/screens/stacks/Profile.tsx29
1 files changed, 22 insertions, 7 deletions
diff --git a/src/view/screens/stacks/Profile.tsx b/src/view/screens/stacks/Profile.tsx
index 033d3c273..d8de12436 100644
--- a/src/view/screens/stacks/Profile.tsx
+++ b/src/view/screens/stacks/Profile.tsx
@@ -1,4 +1,5 @@
 import React, {useState, useEffect} from 'react'
+import {View, StyleSheet} from 'react-native'
 import {Shell} from '../../shell'
 import type {RootTabsScreenProps} from '../../routes/types'
 import {FeedViewModel} from '../../../state/models/feed-view'
@@ -44,13 +45,27 @@ export const Profile = ({
 
   return (
     <Shell>
-      <ProfileHeader
-        user={route.params.name}
-        onNavigateContent={onNavigateContent}
-      />
-      {feedView && (
-        <Feed feed={feedView} onNavigateContent={onNavigateContent} />
-      )}
+      <View style={styles.container}>
+        <ProfileHeader
+          user={route.params.name}
+          onNavigateContent={onNavigateContent}
+        />
+        <View style={styles.feed}>
+          {feedView && (
+            <Feed feed={feedView} onNavigateContent={onNavigateContent} />
+          )}
+        </View>
+      </View>
     </Shell>
   )
 }
+
+const styles = StyleSheet.create({
+  container: {
+    flexDirection: 'column',
+    height: '100%',
+  },
+  feed: {
+    flex: 1,
+  },
+})