Fix layout in profile view
parent
efc28b0098
commit
adc25ce468
|
@ -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>
|
||||||
<ProfileHeader
|
<View style={styles.container}>
|
||||||
user={route.params.name}
|
<ProfileHeader
|
||||||
onNavigateContent={onNavigateContent}
|
user={route.params.name}
|
||||||
/>
|
onNavigateContent={onNavigateContent}
|
||||||
{feedView && (
|
/>
|
||||||
<Feed feed={feedView} onNavigateContent={onNavigateContent} />
|
<View style={styles.feed}>
|
||||||
)}
|
{feedView && (
|
||||||
|
<Feed feed={feedView} onNavigateContent={onNavigateContent} />
|
||||||
|
)}
|
||||||
|
</View>
|
||||||
|
</View>
|
||||||
</Shell>
|
</Shell>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const styles = StyleSheet.create({
|
||||||
|
container: {
|
||||||
|
flexDirection: 'column',
|
||||||
|
height: '100%',
|
||||||
|
},
|
||||||
|
feed: {
|
||||||
|
flex: 1,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue