[INJIMOB-3390] refactor: update OVP wrapper as per library contract change (#2022)

* [INJIMOB-3390] refactor: update WalletMetadat's vpFormatsSupported - [VPFormatType: VPFormatSupported]

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-3390] fix: fallback metadata to support presentation_definition_uri

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-3390] refactor: rename fallbackWalletMetadata -> walletMetadata

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-3390] add: pass responseTYpesSupported to OVP walletMetadata

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>

* [INJIMOB-3388]: update the bridge code to add new parameters for walletmetadata

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

* [INJIMOB-3390]: Resolve latest develop from swift library

Signed-off-by: balachandarg-tw <balachandar.g@thoughtworks.com>

* [INJIMOB-3388]: remove logging

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

* [INJIMOB-3418]:content update in the TrustScreen of Credential Offer

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

* [INJIMOB-3390]: Update issuerHost in VcMetadata

Signed-off-by: balachandarg-tw <balachandar.g@thoughtworks.com>

* [INJIMOB-3390]: Update condition in VCMetadata

Signed-off-by: balachandarg-tw <balachandar.g@thoughtworks.com>

* [INJIMOB-3390]: Update OVP library swift to point release-0.4.x

Signed-off-by: balachandarg-tw <balachandar.g@thoughtworks.com>

---------

Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com>
Signed-off-by: Alka <prasadalka1998@gmail.com>
Signed-off-by: balachandarg-tw <balachandar.g@thoughtworks.com>
Co-authored-by: Alka <prasadalka1998@gmail.com>
Co-authored-by: balachandarg-tw <balachandar.g@thoughtworks.com>
This commit is contained in:
KiruthikaJeyashankar
2025-07-24 16:50:04 +05:30
committed by GitHub
parent 5305e7d7ea
commit 798bf1944f
18 changed files with 277 additions and 148 deletions

View File

@@ -1,50 +1,90 @@
import React from 'react';
import { Modal, View, Text, Image } from 'react-native';
import { Button } from '../../components/ui';
import { Theme } from '../../components/ui/styleUtils';
import { useTranslation } from 'react-i18next';
import {Modal, View, Text, Image, ScrollView} from 'react-native';
import {Button} from '../../components/ui';
import {Theme} from '../../components/ui/styleUtils';
import {useTranslation} from 'react-i18next';
export const TrustIssuerModal = ({
isVisible,
issuerLogo,
issuerName,
onConfirm,
onCancel
}: {
isVisible,
issuerLogo,
issuerName,
onConfirm,
onCancel,
}: {
isVisible: boolean;
issuerLogo: any;
issuerName: string;
onConfirm: () => void;
onCancel: () => void;
}) => {
const { t } = useTranslation('trustScreen');
const {t} = useTranslation('trustScreen');
return (
<Modal transparent={true} visible={isVisible} animationType="fade">
<View
style={Theme.TrustIssuerScreenStyle.modalOverlay}>
<View
style={Theme.TrustIssuerScreenStyle.modalContainer}>
{(issuerLogo || issuerName) && <View
style={Theme.TrustIssuerScreenStyle.issuerHeader}>
{issuerLogo && <Image
source={{ uri: issuerLogo }}
style={Theme.TrustIssuerScreenStyle.issuerLogo}
/>}
{issuerName && <Text
style={Theme.TrustIssuerScreenStyle.issuerName}>
{issuerName}
</Text>}
</View>}
<Text
style={Theme.TrustIssuerScreenStyle.description}>
<View style={Theme.TrustIssuerScreenStyle.modalOverlay}>
<View style={Theme.TrustIssuerScreenStyle.modalContainer}>
{(issuerLogo || issuerName) && (
<View style={Theme.TrustIssuerScreenStyle.issuerHeader}>
{issuerLogo && (
<Image
source={{uri: issuerLogo}}
style={Theme.TrustIssuerScreenStyle.issuerLogo}
/>
)}
{issuerName && (
<Text style={Theme.TrustIssuerScreenStyle.issuerName}>
{issuerName}
</Text>
)}
</View>
)}
<ScrollView
style={{flex: 1, width: '100%'}}
contentContainerStyle={{alignItems: 'center', paddingBottom: 10}}
showsVerticalScrollIndicator={true}>
<Text style={Theme.TrustIssuerScreenStyle.description}>
{t('description')}
</Text>
<Button styles={{ marginBottom: 6 }} type='gradient' title={t('confirm')} onPress={onConfirm} />
<Button styles={{ marginBottom: -10 }} type='clear' title={t('cancel')} onPress={onCancel} />
</Text>
<View style={Theme.TrustIssuerScreenStyle.infoContainer}>
{t('infoPoints', {returnObjects: true}).map((point, index) => (
<View key={index} style={Theme.TrustIssuerScreenStyle.infoItem}>
<Text style={Theme.TrustIssuerScreenStyle.info}></Text>
<Text style={Theme.TrustIssuerScreenStyle.infoText}>
{point}
</Text>
</View>
))}
</View>
</ScrollView>
<View style={{width: '100%', paddingTop: 10, paddingBottom: 5}}>
<Button
styles={{
marginBottom: 3,
minHeight: 50,
justifyContent: 'center',
alignItems: 'center',
}}
type="gradient"
title={t('confirm')}
onPress={onConfirm}
/>
<Button
styles={{
marginBottom: -10,
paddingBottom: 20,
minHeight: 80,
justifyContent: 'center',
alignItems: 'center',
maxWidth: '100%',
}}
type="clear"
title={t('cancel')}
onPress={onCancel}
/>
</View>
</View>
</View>
</Modal>
);
};
};