diff --git a/src/features/inviteFriends/InviteScannerScreen.tsx b/src/features/inviteFriends/InviteScannerScreen.tsx index 4101f3b8b2..ad200397d9 100644 --- a/src/features/inviteFriends/InviteScannerScreen.tsx +++ b/src/features/inviteFriends/InviteScannerScreen.tsx @@ -1,6 +1,7 @@ import {useCallback, useState} from 'react' -import {Pressable, StyleSheet, View} from 'react-native' +import {Pressable, StyleSheet, useWindowDimensions, View} from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' +import Svg, {Path} from 'react-native-svg' import { type BarcodeScanningResult, CameraView, @@ -19,6 +20,7 @@ import {Text} from '#/components/Typography' import {useAnalytics} from '#/analytics' const SCAN_FRAME_SIZE = 333 +const SCAN_FRAME_RADIUS = 16 export function InviteScannerScreen() { const {t: l} = useLingui() @@ -131,6 +133,23 @@ export function InviteScannerScreen() { + {/* scan-frame outline (the colored border around the cutout) */} + + - {/* top */} - - {/* bottom */} - - {/* left */} - - {/* right */} - - {/* scan-frame outline (the colored border around the cutout) */} - - + + + ) }