Fix layout in profile view

zio/stable
Paul Frazee 2022-07-26 10:11:02 -05:00
parent efc28b0098
commit adc25ce468
2 changed files with 24 additions and 7 deletions

View File

@ -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,
},
})

View File

@ -3,6 +3,8 @@ Paul's todo list
- Profile view
- Follow / Unfollow
- Badges
- Followers list
- Follows list
- Composer
- Check on navigation stack during a bunch of replies
- Search view