Add consistent view headers
This commit is contained in:
parent
0fd2c3c4cb
commit
ab134cac93
10 changed files with 164 additions and 64 deletions
|
@ -1,5 +1,7 @@
|
|||
import React, {useEffect} from 'react'
|
||||
import {View} from 'react-native'
|
||||
import {makeRecordUri} from '../lib/strings'
|
||||
import {ViewHeader} from '../com/util/ViewHeader'
|
||||
import {PostThread as PostThreadComponent} from '../com/post-thread/PostThread'
|
||||
import {ScreenParams} from '../routes'
|
||||
import {useStores} from '../../state'
|
||||
|
@ -15,5 +17,10 @@ export const PostThread = ({visible, params}: ScreenParams) => {
|
|||
}
|
||||
}, [visible, store.nav, name])
|
||||
|
||||
return <PostThreadComponent uri={uri} />
|
||||
return (
|
||||
<View>
|
||||
<ViewHeader title="Post" subtitle={`by ${name}`} />
|
||||
<PostThreadComponent uri={uri} />
|
||||
</View>
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue