Bluesky app fork with some witchin' additions 馃挮
at main 36 lines 1.1 kB view raw
1import React from 'react' 2import {msg} from '@lingui/core/macro' 3import {useLingui} from '@lingui/react' 4import {useFocusEffect} from '@react-navigation/native' 5 6import { 7 type CommonNavigatorParams, 8 type NativeStackScreenProps, 9} from '#/lib/routes/types' 10import {makeRecordUri} from '#/lib/strings/url-helpers' 11import {useSetMinimalShellMode} from '#/state/shell' 12import {ViewHeader} from '#/view/com/util/ViewHeader' 13import * as Layout from '#/components/Layout' 14import {LikedByList} from '#/components/LikedByList' 15 16export function ProfileLabelerLikedByScreen({ 17 route, 18}: NativeStackScreenProps<CommonNavigatorParams, 'ProfileLabelerLikedBy'>) { 19 const setMinimalShellMode = useSetMinimalShellMode() 20 const {name: handleOrDid} = route.params 21 const uri = makeRecordUri(handleOrDid, 'app.bsky.labeler.service', 'self') 22 const {_} = useLingui() 23 24 useFocusEffect( 25 React.useCallback(() => { 26 setMinimalShellMode(false) 27 }, [setMinimalShellMode]), 28 ) 29 30 return ( 31 <Layout.Screen> 32 <ViewHeader title={_(msg`Liked By`)} /> 33 <LikedByList uri={uri} /> 34 </Layout.Screen> 35 ) 36}