diff --git a/package.json b/package.json index df205f1..55c39dc 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ "react-native-localize": "^3.0.4", "react-native-mmkv": "^2.11.0", "react-native-modal": "^13.0.1", - "react-native-qrcode-svg": "^6.2.0", "react-native-randombytes": "^3.6.1", "react-native-reanimated": "^3.6.1", "react-native-safe-area-context": "4.5.0", @@ -89,4 +88,4 @@ "engines": { "node": ">=18" } -} +} \ No newline at end of file diff --git a/src/navigation/AppNavigation.tsx b/src/navigation/AppNavigation.tsx index beb1c8f..690fb56 100644 --- a/src/navigation/AppNavigation.tsx +++ b/src/navigation/AppNavigation.tsx @@ -11,7 +11,6 @@ import {LoadingScreen} from '../screens/LoadingScreen'; import {NewConversationScreen} from '../screens/NewConversationScreen'; import {OnboardingConnectWalletScreen} from '../screens/OnboardingConnectWalletScreen'; import {OnboardingEnableIdentityScreen} from '../screens/OnboardingEnableIdentityScreen'; -import {QrCodeScreen} from '../screens/QrCodeScreen'; import {SearchScreen} from '../screens/SearchScreen'; import {UserProfilesScreen} from '../screens/UserProfilesScreen'; import {ScreenNames} from './ScreenNames'; @@ -93,13 +92,6 @@ export const AppNavigation = () => { presentation: 'modal', }} /> - = { }, }, [ScreenNames.Search]: 'search', - [ScreenNames.QRCode]: 'qr_code', [ScreenNames.UserProfiles]: 'user_profiles', }, }, diff --git a/src/screens/AccountSettingsScreen.tsx b/src/screens/AccountSettingsScreen.tsx index b863c01..0b1942a 100644 --- a/src/screens/AccountSettingsScreen.tsx +++ b/src/screens/AccountSettingsScreen.tsx @@ -25,7 +25,6 @@ import {AppConfig} from '../consts/AppConfig'; import {useClientContext} from '../context/ClientContext'; import {useTypedNavigation} from '../hooks/useTypedNavigation'; import {translate} from '../i18n'; -import {ScreenNames} from '../navigation/ScreenNames'; import {clearClientKeys} from '../services/encryptedStorage'; import {mmkvStorage} from '../services/mmkvStorage'; import {colors, greens, reds} from '../theme/colors'; @@ -263,11 +262,7 @@ export const AccountSettingsScreen = () => { {translate('you')} } - left={ - navigate(ScreenNames.QRCode)}> - - - } + left={< Box />} right={ diff --git a/src/screens/QrCodeScreen.tsx b/src/screens/QrCodeScreen.tsx deleted file mode 100644 index bdb7e63..0000000 --- a/src/screens/QrCodeScreen.tsx +++ /dev/null @@ -1,93 +0,0 @@ -import Clipboard from '@react-native-clipboard/clipboard'; -import {BlurView} from '@react-native-community/blur'; -import {useAddress} from '@thirdweb-dev/react-native'; -import {Box, Center, Pressable} from 'native-base'; -import React, {useCallback} from 'react'; -import {Platform, StyleSheet} from 'react-native'; -import LinearGradient from 'react-native-linear-gradient'; -import QRCode from 'react-native-qrcode-svg'; -import {Button} from '../components/common/Button'; -import {Icon} from '../components/common/Icon'; -import {Screen} from '../components/common/Screen'; -import {Text} from '../components/common/Text'; -import {useTypedNavigation} from '../hooks/useTypedNavigation'; -import {translate} from '../i18n'; -import {blues, colors, reds} from '../theme/colors'; - -export const QrCodeScreen = () => { - const {goBack} = useTypedNavigation(); - const address = useAddress(); - const value = `xmtp://new_conversation/${address}`; - const handleCopy = useCallback(() => { - Clipboard.setString(value); - }, [value]); - return ( - <> - - - - {translate('you')} - - } - includeTopPadding={Platform.OS === 'android'} - includeBackground={false} - right={ - - - - }> -
- - - - -
-
-
- - ); -}; - -const styles = StyleSheet.create({ - absolute: { - position: 'absolute', - top: 0, - left: 0, - bottom: 0, - right: 0, - backgroundColor: 'rgba(0, 0, 0, 0.65)', - }, - flex: { - flex: 1, - }, -}); diff --git a/src/screens/SearchScreen.tsx b/src/screens/SearchScreen.tsx index 8888dd9..d657bc1 100644 --- a/src/screens/SearchScreen.tsx +++ b/src/screens/SearchScreen.tsx @@ -261,11 +261,7 @@ export const SearchScreen = () => { {translate('search')} } - left={ - navigate(ScreenNames.QRCode)}> - - - } + left={} right={