From ac69e328d917edd14f993916447088343d68492a Mon Sep 17 00:00:00 2001 From: Evi Nova <66773372+Tranquil-Flow@users.noreply.github.com> Date: Mon, 9 Feb 2026 12:43:46 +1000 Subject: [PATCH] Fix/logo confirmation screen header (#1717) * fix: logo confirmation screen header matching background * refactor: match code patterns in logo confirmation screen to others use Tamgui instead of react-native, don't show raw errors, inline objects --- .../selection/LogoConfirmationScreen.tsx | 78 +++++++++---------- 1 file changed, 36 insertions(+), 42 deletions(-) diff --git a/app/src/screens/documents/selection/LogoConfirmationScreen.tsx b/app/src/screens/documents/selection/LogoConfirmationScreen.tsx index 55813cf3d..10c7a4ee2 100644 --- a/app/src/screens/documents/selection/LogoConfirmationScreen.tsx +++ b/app/src/screens/documents/selection/LogoConfirmationScreen.tsx @@ -3,7 +3,7 @@ // NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE. import React, { useCallback } from 'react'; -import { StyleSheet, View } from 'react-native'; +import { YStack } from 'tamagui'; import type { RouteProp } from '@react-navigation/native'; import { useNavigation, useRoute } from '@react-navigation/native'; import type { NativeStackNavigationProp } from '@react-navigation/native-stack'; @@ -16,6 +16,7 @@ import { } from '@selfxyz/mobile-sdk-alpha/components'; import { black, + slate100, slate400, white, } from '@selfxyz/mobile-sdk-alpha/constants/colors'; @@ -78,8 +79,8 @@ const LogoConfirmationScreen: React.FC = () => { // User completed verification - navigate to KycSuccessScreen navigation.navigate('KycSuccess', { userId: accessToken.userId }); - } catch (error) { - console.error('Error launching Sumsub:', error); + } catch { + console.error('Error launching Sumsub verification'); showModal({ titleText: 'Error', bodyText: 'Unable to start verification. Please try again.', @@ -92,26 +93,49 @@ const LogoConfirmationScreen: React.FC = () => { }, [documentType, countryCode, navigation, showModal]); return ( - + - - - + + + Does your document have this symbol? - + - + - + This symbol indicates your document has a biometric chip, which is required for registration. - + - + Yes {kycEnabled && ( @@ -124,33 +148,3 @@ const LogoConfirmationScreen: React.FC = () => { }; export default LogoConfirmationScreen; - -const styles = StyleSheet.create({ - contentContainer: { - alignItems: 'center', - gap: 24, - maxWidth: 340, - }, - titleText: { - fontSize: 20, - fontFamily: advercase, - textAlign: 'center', - color: black, - }, - logoContainer: { - backgroundColor: white, - borderRadius: 16, - padding: 24, - shadowColor: black, - shadowOffset: { width: 0, height: 2 }, - shadowOpacity: 0.1, - shadowRadius: 8, - elevation: 4, - }, - descriptionText: { - fontSize: 16, - fontFamily: dinot, - textAlign: 'center', - color: slate400, - }, -});