import {lazy} from 'react' import {View} from 'react-native' // @ts-expect-error missing types import QRCode from 'react-native-qrcode-styled' import type ViewShot from 'react-native-view-shot' import {type AppBskyGraphDefs, AppBskyGraphStarterpack} from '@atproto/api' import {Trans} from '@lingui/macro' import {isWeb} from '#/platform/detection' import {Logo} from '#/view/icons/Logo' import {Logotype} from '#/view/icons/Logotype' import {useTheme} from '#/alf' import {atoms as a} from '#/alf' import {LinearGradientBackground} from '#/components/LinearGradientBackground' import {Text} from '#/components/Typography' import * as bsky from '#/types/bsky' const LazyViewShot = lazy( // @ts-expect-error dynamic import () => import('react-native-view-shot/src/index'), ) export function QrCode({ starterPack, link, ref, }: { starterPack: AppBskyGraphDefs.StarterPackView link: string ref: React.Ref }) { const {record} = starterPack if ( !bsky.dangerousIsType( record, AppBskyGraphStarterpack.isRecord, ) ) { return null } return ( {record.name} Join the conversation on ) } export function QrCodeInner({link}: {link: string}) { const t = useTheme() return ( ) }