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 React, {useState, useEffect} from 'react'
import {View, StyleSheet} from 'react-native'
import {Shell} from '../../shell' import {Shell} from '../../shell'
import type {RootTabsScreenProps} from '../../routes/types' import type {RootTabsScreenProps} from '../../routes/types'
import {FeedViewModel} from '../../../state/models/feed-view' import {FeedViewModel} from '../../../state/models/feed-view'
@ -44,13 +45,27 @@ export const Profile = ({
return ( return (
<Shell> <Shell>
<View style={styles.container}>
<ProfileHeader <ProfileHeader
user={route.params.name} user={route.params.name}
onNavigateContent={onNavigateContent} onNavigateContent={onNavigateContent}
/> />
<View style={styles.feed}>
{feedView && ( {feedView && (
<Feed feed={feedView} onNavigateContent={onNavigateContent} /> <Feed feed={feedView} onNavigateContent={onNavigateContent} />
)} )}
</View>
</View>
</Shell> </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 - Profile view
- Follow / Unfollow - Follow / Unfollow
- Badges - Badges
- Followers list
- Follows list
- Composer - Composer
- Check on navigation stack during a bunch of replies - Check on navigation stack during a bunch of replies
- Search view - Search view