* Fix scroll behaviors on web * Remove headers on web to avoid scroll overflow * Fix follow button press in cards
29 lines
1,014 B
TypeScript
29 lines
1,014 B
TypeScript
import React from 'react'
|
|
import {View} from 'react-native'
|
|
import {useFocusEffect} from '@react-navigation/native'
|
|
import {withAuthRequired} from 'view/com/auth/withAuthRequired'
|
|
import {NativeStackScreenProps, CommonNavigatorParams} from 'lib/routes/types'
|
|
import {ViewHeader} from '../com/util/ViewHeader'
|
|
import {PostRepostedBy as PostRepostedByComponent} from '../com/post-thread/PostRepostedBy'
|
|
import {useStores} from 'state/index'
|
|
import {makeRecordUri} from 'lib/strings/url-helpers'
|
|
|
|
type Props = NativeStackScreenProps<CommonNavigatorParams, 'PostRepostedBy'>
|
|
export const PostRepostedByScreen = withAuthRequired(({route}: Props) => {
|
|
const store = useStores()
|
|
const {name, rkey} = route.params
|
|
const uri = makeRecordUri(name, 'app.bsky.feed.post', rkey)
|
|
|
|
useFocusEffect(
|
|
React.useCallback(() => {
|
|
store.shell.setMinimalShellMode(false)
|
|
}, [store]),
|
|
)
|
|
|
|
return (
|
|
<View>
|
|
<ViewHeader title="Reposted by" />
|
|
<PostRepostedByComponent uri={uri} />
|
|
</View>
|
|
)
|
|
})
|