[INJIMOB-3190]: Add deeplink support for iOS OVP flow (#1913)

* [INJIMOB-3190]: add support for ovp deeplink in ios

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: refactor ovp deeplink

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: show text for ios ovp deeplink flow

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: refactor ovp deeplink flow

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: refactor state variables and extract functions

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: fix additional message shown in android success overlay

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: refactor no sharable vc variable

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: refactor send vp screen and error modal

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: refactor send vp screen and error modal

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3190]: refactor scan machine actions

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>

* [INJIMOB-3153]: fix closing brace issue

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

---------

Signed-off-by: adityankannan-tw <adityan.kannan@thoughtworks.com>
Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
Co-authored-by: Alka Prasad <prasadalka1998@gmail.com>
This commit is contained in:
adityankannan-tw
2025-05-12 14:39:18 +05:30
committed by GitHub
parent 3163167feb
commit 1df2d8f26a
29 changed files with 473 additions and 166 deletions

View File

@@ -8,6 +8,7 @@ import {Header} from './Header';
import {Theme} from './styleUtils';
import testIDProps from '../../shared/commonUtil';
import {Modal} from './Modal';
import {isIOS} from '../../shared/constants';
export const Error: React.FC<ErrorProps> = props => {
const {t} = useTranslation('common');
@@ -22,6 +23,7 @@ export const Error: React.FC<ErrorProps> = props => {
alignActionsOnEnd = false,
title,
message,
additionalMessage,
helpText,
image,
goBack,
@@ -45,9 +47,12 @@ export const Error: React.FC<ErrorProps> = props => {
props.textButtonText === undefined &&
props.primaryButtonText === undefined
) {
const timeout = setTimeout(() => {
setTriggerExitFlow(true);
}, 2000);
const timeout = setTimeout(
() => {
setTriggerExitFlow(true);
},
isIOS() ? 4000 : 2000,
);
return () => clearTimeout(timeout);
}
@@ -77,6 +82,13 @@ export const Error: React.FC<ErrorProps> = props => {
<Text style={Theme.ErrorStyles.message} testID={`${testID}Message`}>
{message}
</Text>
{additionalMessage && (
<Text
style={Theme.ErrorStyles.additionalMessage}
testID={`${testID}AdditionalMessage`}>
{additionalMessage}
</Text>
)}
</View>
{!alignActionsOnEnd && (
<Fragment>
@@ -193,6 +205,7 @@ export interface ErrorProps {
alignActionsOnEnd?: boolean;
title: string;
message: string;
additionalMessage?: string;
helpText?: string;
image: React.ReactElement;
goBack?: () => void;

View File

@@ -1270,7 +1270,7 @@ export const DefaultTheme = {
letterSpacing: 0,
lineHeight: 17,
minHeight: 50,
}
},
}),
SectionLayoutStyles: StyleSheet.create({
headerContainer: {
@@ -1294,7 +1294,7 @@ export const DefaultTheme = {
backgroundColor: Colors.White,
borderBottomLeftRadius: 6,
borderBottomRightRadius: 6,
}
},
}),
TextEditOverlayStyles: StyleSheet.create({
overlay: {
@@ -1557,6 +1557,15 @@ export const DefaultTheme = {
marginHorizontal: 26,
color: Colors.mediumDarkGrey,
},
additionalMessage: {
color: Colors.Black,
fontFamily: 'Inter_600SemiBold',
fontSize: 18,
lineHeight: 21,
paddingTop: 4,
textAlign: 'center',
marginBottom: 10,
},
}),
SetupLanguageScreenStyle: StyleSheet.create({
columnStyle: {

View File

@@ -1299,7 +1299,7 @@ export const PurpleTheme = {
backgroundColor: Colors.White,
borderBottomLeftRadius: 6,
borderBottomRightRadius: 6,
}
},
}),
TextEditOverlayStyles: StyleSheet.create({
overlay: {
@@ -1562,6 +1562,15 @@ export const PurpleTheme = {
marginHorizontal: 26,
color: Colors.mediumDarkGrey,
},
additionalMessage: {
color: Colors.Black,
fontFamily: 'Inter_600SemiBold',
fontSize: 18,
lineHeight: 21,
paddingTop: 4,
textAlign: 'center',
marginBottom: 10,
},
}),
SetupLanguageScreenStyle: StyleSheet.create({
columnStyle: {